Move warning message inside the !success block.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6262 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Angus Leeming 2003-02-25 16:58:57 +00:00
parent 66b786baa6
commit 282037a2bc
2 changed files with 5 additions and 1 deletions

View File

@ -3,6 +3,9 @@
* LoaderQueue.[Ch]: a simplification of the code, eliminated
the unneeded input bucket.
* GraphicsCacheItem.C (imageConverted): move warning inside the
!success block.
2003-02-25 Alfredo Braunstein <abraunst@libero.it>
* PreviewLoader.C (FindFirst): use ==, not < with std::find.

View File

@ -252,9 +252,10 @@ void CacheItem::Impl::imageConverted(bool success)
cc_.disconnect();
success = !file_to_load_.empty() && IsFileReadable(file_to_load_);
lyxerr[Debug::GRAPHICS] << "Unable to find converted file!" << endl;
if (!success) {
lyxerr[Debug::GRAPHICS] << "Unable to find converted file!"
<< endl;
setStatus(ErrorConverting);
if (zipped_)