[Libreoffice-commits] core.git: svx/source
Chris Sherlock
chris.sherlock79 at gmail.com
Mon May 19 06:39:42 PDT 2014
svx/source/dialog/dlgctrl.cxx | 1 +
1 file changed, 1 insertion(+)
New commits:
commit 48fb7d096a73ad3dbaa7763b6b760693ee069632
Author: Chris Sherlock <chris.sherlock79 at gmail.com>
Date: Mon May 19 23:31:51 2014 +1000
svx: SvxPixelCtl should never be able to have zero lines
Change-Id: I898d4d8f00a190a57d3402aa6c9da96c960b6fe5
diff --git a/svx/source/dialog/dlgctrl.cxx b/svx/source/dialog/dlgctrl.cxx
index ffb0be2..0ace4bf 100644
--- a/svx/source/dialog/dlgctrl.cxx
+++ b/svx/source/dialog/dlgctrl.cxx
@@ -815,6 +815,7 @@ SvxPixelCtl::SvxPixelCtl(Window* pParent, sal_uInt16 nNumber)
, bPaintable(true)
, aFocusPosition(0,0)
{
+ assert(nLines); // can't have no lines
SetPixelColor( Color( COL_BLACK ) );
SetBackgroundColor( Color( COL_WHITE ) );
SetLineColor( Application::GetSettings().GetStyleSettings().GetShadowColor() );
More information about the Libreoffice-commits
mailing list