From 435e223f7c97dabe3105099e7f2631ec69144241 Mon Sep 17 00:00:00 2001 From: Abdelrazak Younes Date: Sat, 7 Jun 2008 09:06:18 +0000 Subject: [PATCH] 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 --- src/graphics/GraphicsCacheItem.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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; } -- 2.39.2