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
This commit is contained in:
Angus Leeming 2001-09-21 14:16:10 +00:00
parent af558da34b
commit 414b45b140
2 changed files with 5 additions and 3 deletions

View File

@ -1,7 +1,8 @@
2001-09-21 Angus Leeming <a.leeming@ic.ac.uk>
* 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 <a.leeming@ic.ac.uk>

View File

@ -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.