diff options
-rw-r--r-- | include/svx/numvset.hxx | 1 | ||||
-rw-r--r-- | svx/source/dialog/svxbmpnumvalueset.cxx | 11 |
2 files changed, 3 insertions, 9 deletions
diff --git a/include/svx/numvset.hxx b/include/svx/numvset.hxx index 75651786eeac..903921c81cb8 100644 --- a/include/svx/numvset.hxx +++ b/include/svx/numvset.hxx @@ -57,7 +57,6 @@ enum class NumberingPageType class SVX_DLLPUBLIC SvxNumValueSet : public ValueSet { - Color aLineColor; NumberingPageType ePageType; bool bHTMLMode; Rectangle aOrgRect; diff --git a/svx/source/dialog/svxbmpnumvalueset.cxx b/svx/source/dialog/svxbmpnumvalueset.cxx index 5d11b04cd47c..1d01cd92cf48 100644 --- a/svx/source/dialog/svxbmpnumvalueset.cxx +++ b/svx/source/dialog/svxbmpnumvalueset.cxx @@ -136,9 +136,8 @@ void SvxNumValueSet::UserDraw( const UserDrawEvent& rUDEvt ) 25, 90, }; - const StyleSettings& rStyleSettings = GetSettings().GetStyleSettings(); - const Color aBackColor = rStyleSettings.GetFieldColor(); - const Color aTextColor = rStyleSettings.GetFieldTextColor(); + const Color aBackColor(COL_WHITE); + const Color aTextColor(COL_BLACK); vcl::RenderContext* pDev = rUDEvt.GetRenderContext(); Rectangle aRect = rUDEvt.GetRect(); @@ -182,10 +181,7 @@ void SvxNumValueSet::UserDraw( const UserDrawEvent& rUDEvt ) pVDev->SetOutputSize( aRectSize ); aOrgRect = aRect; pVDev->SetFillColor( aBackColor ); - - if(aBackColor == aLineColor) - aLineColor.Invert(); - pVDev->SetLineColor(aLineColor); + pVDev->SetLineColor(COL_LIGHTGRAY); // Draw line only once if(ePageType != NumberingPageType::OUTLINE) { @@ -397,7 +393,6 @@ VCL_BUILDER_FACTORY_ARGS(SvxNumValueSet, WB_TABSTOP) void SvxNumValueSet::init(NumberingPageType eType) { - aLineColor = COL_LIGHTGRAY; ePageType = eType; bHTMLMode = false; pVDev = NULL; |