diff options
-rw-r--r-- | starmath/source/ElementsDockingWindow.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/starmath/source/ElementsDockingWindow.cxx b/starmath/source/ElementsDockingWindow.cxx index 81e9d79b025f..2a268f064ad2 100644 --- a/starmath/source/ElementsDockingWindow.cxx +++ b/starmath/source/ElementsDockingWindow.cxx @@ -220,6 +220,11 @@ SmElementsControl::SmElementsControl(Window *pParent, const ResId& rResId) , mbVerticalMode(true) , mpScroll(new ScrollBar(this, WB_VERT)) { + SetMapMode( MapMode(MAP_100TH_MM) ); + SetDrawMode( DRAWMODE_DEFAULT ); + SetLayoutMode( TEXT_LAYOUT_BIDI_LTR ); + SetDigitLanguage( LANGUAGE_ENGLISH ); + maFormat.SetBaseSize(PixelToLogic(Size(0, SmPtsTo100th_mm(12)))); mpScroll->SetScrollHdl( LINK(this, SmElementsControl, ScrollHdl) ); @@ -240,11 +245,6 @@ void SmElementsControl::Paint(const Rectangle&) { Push(); - SetMapMode( MapMode(MAP_100TH_MM) ); - SetDrawMode( DRAWMODE_DEFAULT ); - SetLayoutMode( TEXT_LAYOUT_BIDI_LTR ); - SetDigitLanguage( LANGUAGE_ENGLISH ); - bool bOldVisibleState = mpScroll->IsVisible(); sal_Int32 nScrollbarWidth = bOldVisibleState ? GetSettings().GetStyleSettings().GetScrollBarSize() : 0; |