Kaydet (Commit) 33be4c0f authored tarafından Caolán McNamara's avatar Caolán McNamara

return early for empty bitmap

Change-Id: I768ffe9dc1226bbcca706e0c56c6103e043b2401
üst 46d97243
...@@ -358,6 +358,9 @@ void ColorFieldControl::UpdateBitmap() ...@@ -358,6 +358,9 @@ void ColorFieldControl::UpdateBitmap()
const sal_Int32 nWidth = aSize.Width(); const sal_Int32 nWidth = aSize.Width();
const sal_Int32 nHeight = aSize.Height(); const sal_Int32 nHeight = aSize.Height();
if (nWidth == 0 || nHeight == 0)
return;
if( !mpBitmap ) if( !mpBitmap )
{ {
mpBitmap = new Bitmap( aSize, 24 ); mpBitmap = new Bitmap( aSize, 24 );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment