From 414b45b1407bd916c1db614a992e1c0911a8a0ae Mon Sep 17 00:00:00 2001 From: Angus Leeming Date: Fri, 21 Sep 2001 14:16:10 +0000 Subject: [PATCH] Don't display the image if params.display == NONE. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2782 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/insets/ChangeLog | 5 +++-- src/insets/insetgraphics.C | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/insets/ChangeLog b/src/insets/ChangeLog index c25a5f0aaf..6c80888f14 100644 --- a/src/insets/ChangeLog +++ b/src/insets/ChangeLog @@ -1,7 +1,8 @@ 2001-09-21 Angus Leeming - * insetgraphics.C (draw): remove the previous change. Right place is in - imageLoaderXPM.C. + * insetgraphics.C (draw): remove the previous change. Right place + is in imageLoaderXPM.C. + (draw): don't display the image if params.display == NONE. 2001-09-18 Angus Leeming diff --git a/src/insets/insetgraphics.C b/src/insets/insetgraphics.C index 7db9d2a878..72944c62b6 100644 --- a/src/insets/insetgraphics.C +++ b/src/insets/insetgraphics.C @@ -291,7 +291,8 @@ void InsetGraphics::draw(BufferView * bv, LyXFont const & font, // Get the image status, default to unknown error. GraphicsCacheItem::ImageStatus status = GraphicsCacheItem::UnknownError; - if (cacheHandle.get()) + if (params.display != InsetGraphicsParams::NONE && + cacheHandle.get()) status = cacheHandle->getImageStatus(); // Check if the image is now ready. -- 2.39.2