git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25182 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2008-06-07 09:06:18 +00:00
parent 17625fa03c
commit 435e223f7c

View 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;
}