mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-23 13:31:49 +00:00
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25532 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
f10b67b09f
commit
f71ec170f7
@ -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());
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user