mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-10 20:04:46 +00:00
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:
parent
af558da34b
commit
414b45b140
@ -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>
|
||||
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user