git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25532 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2008-07-10 11:43:12 +00:00
parent f10b67b09f
commit f71ec170f7

View File

@ -407,13 +407,19 @@ void Loader::Impl::statusChanged()
void Loader::Impl::createPixmap()
{
if (!params_.display || status_ != Loaded)
return;
if (!cached_item_.get()) {
LYXERR(Debug::GRAPHICS, "pixmap not cached yet");
return;
}
if (!params_.display || status_ != Loaded)
if (cached_item_->image()) {
// There must have been a problem reading the file.
LYXERR(Debug::GRAPHICS, "Graphics file not loaded.");
return;
}
image_.reset(cached_item_->image()->clone());