summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorChris Sherlock <chris.sherlock79@gmail.com>2014-05-19 23:31:51 +1000
committerChris Sherlock <chris.sherlock79@gmail.com>2014-05-19 23:34:36 +1000
commit48fb7d096a73ad3dbaa7763b6b760693ee069632 (patch)
tree465a86e76bbe7ef7e4edd81643b17cbdfe1a8716 /svx
parent018e2f629e125f1a0fe33471a0e4fe606813aa91 (diff)
svx: SvxPixelCtl should never be able to have zero lines
Change-Id: I898d4d8f00a190a57d3402aa6c9da96c960b6fe5
Diffstat (limited to 'svx')
-rw-r--r--svx/source/dialog/dlgctrl.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/svx/source/dialog/dlgctrl.cxx b/svx/source/dialog/dlgctrl.cxx
index ffb0be2a32f5..0ace4bf3ea66 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() );