From: Abdelrazak Younes Date: Sat, 7 Jun 2008 09:06:18 +0000 (+0000) Subject: Fix http://bugzilla.lyx.org/show_bug.cgi?id=4933 X-Git-Tag: 1.6.10~4460 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=435e223f7c97dabe3105099e7f2631ec69144241;p=lyx.git Fix http://bugzilla.lyx.org/show_bug.cgi?id=4933 git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25182 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/graphics/GraphicsCacheItem.cpp b/src/graphics/GraphicsCacheItem.cpp index 3359682ce8..c5fc58c101 100644 --- a/src/graphics/GraphicsCacheItem.cpp +++ b/src/graphics/GraphicsCacheItem.cpp @@ -145,7 +145,10 @@ bool CacheItem::tryDisplayFormat() const pimpl_->reset(); FileName filename; string from; - return pimpl_->tryDisplayFormat(filename, from); + bool const success = pimpl_->tryDisplayFormat(filename, from); + if (!success) + pimpl_->reset(); + return success; }