Don't launch that Alert if the graphics file isn't found. It doesn't work

properly for some reason and the message is displayed in the inset anyway.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3836 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Angus Leeming 2002-03-26 12:14:23 +00:00
parent a351157fc6
commit d11fd01ce7
3 changed files with 6 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2002-03-26 Angus Leeming <a.leeming@ic.ac.uk>
* GraphicsCacheItem.C (convertToDisplayFormat): don't launch that Alert
if the file can't be found.
2002-03-22 Angus Leeming <a.leeming@ic.ac.uk> 2002-03-22 Angus Leeming <a.leeming@ic.ac.uk>
* GraphicsCache.[Ch] (update): now passed filepath to determine absolute * GraphicsCache.[Ch] (update): now passed filepath to determine absolute

View File

@ -434,8 +434,6 @@ void GCacheItem::convertToDisplayFormat()
// First, check that the file exists! // First, check that the file exists!
if (!IsFileReadable(filename)) { if (!IsFileReadable(filename)) {
Alert::alert(_("File ") + displayed_filename,
_("\nisn't readable or doesn't exist!"));
setStatus(ErrorNoFile); setStatus(ErrorNoFile);
return; return;
} }

View File

@ -31,7 +31,7 @@ GParams::GParams(InsetGraphicsParams const & iparams, string const & filepath)
if (!filepath.empty()) { if (!filepath.empty()) {
filename = MakeAbsPath(filename, filepath); filename = MakeAbsPath(filename, filepath);
} }
if (iparams.clip) if (iparams.clip)
bb = iparams.bb; bb = iparams.bb;