diff options
author | Chris Sherlock <chris.sherlock79@gmail.com> | 2014-05-19 23:31:51 +1000 |
---|---|---|
committer | Chris Sherlock <chris.sherlock79@gmail.com> | 2014-05-19 23:34:36 +1000 |
commit | 48fb7d096a73ad3dbaa7763b6b760693ee069632 (patch) | |
tree | 465a86e76bbe7ef7e4edd81643b17cbdfe1a8716 /svx | |
parent | 018e2f629e125f1a0fe33471a0e4fe606813aa91 (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.cxx | 1 |
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() ); |