diff options
Diffstat (limited to 'drawinglayer/source/texture/texture3d.cxx')
-rw-r--r-- | drawinglayer/source/texture/texture3d.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drawinglayer/source/texture/texture3d.cxx b/drawinglayer/source/texture/texture3d.cxx index 0dac447ccf50..fc6232022692 100644 --- a/drawinglayer/source/texture/texture3d.cxx +++ b/drawinglayer/source/texture/texture3d.cxx @@ -90,7 +90,8 @@ namespace drawinglayer mpReadTransparence = Bitmap::ScopedReadAccess(maTransparence); } - mpReadBitmap = Bitmap::ScopedReadAccess(maBitmap); + if (!!maBitmap) + mpReadBitmap = Bitmap::ScopedReadAccess(maBitmap); SAL_WARN_IF(!mpReadBitmap, "drawinglayer", "GeoTexSvxBitmapEx: Got no read access to Bitmap"); if (mpReadBitmap) { |