]> git.lyx.org Git - lyx.git/commitdiff
Fix http://bugzilla.lyx.org/show_bug.cgi?id=4933
authorAbdelrazak Younes <younes@lyx.org>
Sat, 7 Jun 2008 09:06:18 +0000 (09:06 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Sat, 7 Jun 2008 09:06:18 +0000 (09:06 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25182 a592a061-630c-0410-9148-cb99ea01b6c8

src/graphics/GraphicsCacheItem.cpp

index 3359682ce875e5b79c8cbc16eb391251289a46d7..c5fc58c10135f466ee0b9c00aec47fcff29f5362 100644 (file)
@@ -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;
 }