diff options
author | Zolnai Tamás <zolnaitamas2000@gmail.com> | 2015-02-07 11:26:23 +0100 |
---|---|---|
committer | Zolnai Tamás <zolnaitamas2000@gmail.com> | 2015-02-07 11:26:23 +0100 |
commit | 905d4db48a0b98f540c8abc3e12fb80be4826029 (patch) | |
tree | 058c408b5ca93c933be5ba004a761eb5a036097b /vcl | |
parent | 3159f59e2c620de14d9570b69a802554a3968af8 (diff) |
tdf#88836: UI: in-form navigation bar icons gone
Regression from:
6419c745e5e9802da264250d5e131fb9a3b6e4de
Revert it and use IsEmpty() instead of operator!().
Change-Id: Icc4f5dbba848a1d4ef807e598f0aa3b940459c82
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/gdi/impgraph.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/source/gdi/impgraph.cxx b/vcl/source/gdi/impgraph.cxx index d0b74f4e7f74..2a66b164ce36 100644 --- a/vcl/source/gdi/impgraph.cxx +++ b/vcl/source/gdi/impgraph.cxx @@ -138,7 +138,7 @@ ImpGraphic::ImpGraphic( const Bitmap& rBitmap ) : mpContext ( NULL ), mpSwapFile ( NULL ), mpGfxLink ( NULL ), - meType ( GRAPHIC_BITMAP ), + meType ( !rBitmap.IsEmpty() ? GRAPHIC_BITMAP : GRAPHIC_NONE ), mnSizeBytes ( 0UL ), mnRefCount ( 1UL ), mbSwapOut ( false ), @@ -152,7 +152,7 @@ ImpGraphic::ImpGraphic( const BitmapEx& rBitmapEx ) : mpContext ( NULL ), mpSwapFile ( NULL ), mpGfxLink ( NULL ), - meType ( GRAPHIC_BITMAP ), + meType ( !rBitmapEx.IsEmpty() ? GRAPHIC_BITMAP : GRAPHIC_NONE ), mnSizeBytes ( 0UL ), mnRefCount ( 1UL ), mbSwapOut ( false ), |