Don't output a warning message when all is actually fine ;-)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_3_X@6263 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Angus Leeming 2003-02-25 17:03:27 +00:00
parent 3c47c4e892
commit 4d76301b0b
3 changed files with 11 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2003-02-25 Alfredo Braunstein <abraunst@libero.it>
* GraphicsCacheItem.C (imageConverted): move warning inside the
!success block.
2003-02-25 Angus Leeming <leeming@lyx.org>
* PreviewLoader.C: Use equality not less than with std::find.

View File

@ -256,9 +256,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_)

View File

@ -107,4 +107,7 @@ What's new
- squash a potential bug in the PreviewLoader before it bites.
- don't cause a warning message to complain about starting an already running
timer. Don't start it ;-)
timer. Just don't start it ;-)
- prevent incorrect warning message about failing to find a graphics file to
load when all is actually fine and dandy.