]> git.lyx.org Git - features.git/commitdiff
Fix crash reported in http://bugzilla.lyx.org/show_bug.cgi?id=4873
authorAbdelrazak Younes <younes@lyx.org>
Wed, 9 Jul 2008 09:48:59 +0000 (09:48 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Wed, 9 Jul 2008 09:48:59 +0000 (09:48 +0000)
I don't think the crash is related to that bug.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25514 a592a061-630c-0410-9148-cb99ea01b6c8

src/graphics/GraphicsLoader.cpp

index 9efdb5f80eb4483145c428a7aaf8f5e37cf34812..8b8fd9ce153c1601bdf5e7a7f1ff686342646626 100644 (file)
@@ -407,7 +407,12 @@ void Loader::Impl::statusChanged()
 
 void Loader::Impl::createPixmap()
 {
-       if (!cached_item_.get() || !params_.display || status_ != Loaded)
+       if (!cached_item_.get()) {
+               LYXERR(Debug::GRAPHICS, "pixmap not cached yet");
+               return;
+       }
+
+       if (!params_.display || status_ != Loaded)
                return;
 
        image_.reset(cached_item_->image()->clone());