[Libreoffice-commits] core.git: cui/source
Caolán McNamara
caolanm at redhat.com
Fri Jul 11 07:38:47 PDT 2014
cui/source/dialogs/colorpicker.cxx | 3 +++
1 file changed, 3 insertions(+)
New commits:
commit 33be4c0f6949a57ff0cd3ef1c5ce9e32ffc91910
Author: Caolán McNamara <caolanm at redhat.com>
Date: Fri Jul 11 14:10:51 2014 +0100
return early for empty bitmap
Change-Id: I768ffe9dc1226bbcca706e0c56c6103e043b2401
diff --git a/cui/source/dialogs/colorpicker.cxx b/cui/source/dialogs/colorpicker.cxx
index ab32c51..cfe668b 100644
--- a/cui/source/dialogs/colorpicker.cxx
+++ b/cui/source/dialogs/colorpicker.cxx
@@ -358,6 +358,9 @@ void ColorFieldControl::UpdateBitmap()
const sal_Int32 nWidth = aSize.Width();
const sal_Int32 nHeight = aSize.Height();
+ if (nWidth == 0 || nHeight == 0)
+ return;
+
if( !mpBitmap )
{
mpBitmap = new Bitmap( aSize, 24 );
More information about the Libreoffice-commits
mailing list