From d11fd01ce743c4974a96f241a99853f46078c80c Mon Sep 17 00:00:00 2001 From: Angus Leeming Date: Tue, 26 Mar 2002 12:14:23 +0000 Subject: [PATCH] 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 --- src/graphics/ChangeLog | 5 +++++ src/graphics/GraphicsCacheItem.C | 2 -- src/graphics/GraphicsParams.C | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/graphics/ChangeLog b/src/graphics/ChangeLog index 39529bd9b5..cf549663a2 100644 --- a/src/graphics/ChangeLog +++ b/src/graphics/ChangeLog @@ -1,3 +1,8 @@ +2002-03-26 Angus Leeming + + * GraphicsCacheItem.C (convertToDisplayFormat): don't launch that Alert + if the file can't be found. + 2002-03-22 Angus Leeming * GraphicsCache.[Ch] (update): now passed filepath to determine absolute diff --git a/src/graphics/GraphicsCacheItem.C b/src/graphics/GraphicsCacheItem.C index dfd9cd23a6..346126283a 100644 --- a/src/graphics/GraphicsCacheItem.C +++ b/src/graphics/GraphicsCacheItem.C @@ -434,8 +434,6 @@ void GCacheItem::convertToDisplayFormat() // First, check that the file exists! if (!IsFileReadable(filename)) { - Alert::alert(_("File ") + displayed_filename, - _("\nisn't readable or doesn't exist!")); setStatus(ErrorNoFile); return; } diff --git a/src/graphics/GraphicsParams.C b/src/graphics/GraphicsParams.C index eeea38affc..b0cf8e1312 100644 --- a/src/graphics/GraphicsParams.C +++ b/src/graphics/GraphicsParams.C @@ -31,7 +31,7 @@ GParams::GParams(InsetGraphicsParams const & iparams, string const & filepath) if (!filepath.empty()) { filename = MakeAbsPath(filename, filepath); } - + if (iparams.clip) bb = iparams.bb; -- 2.39.2