diff options
author | Thomas Arnhold <thomas@arnhold.org> | 2014-05-28 10:54:36 +0200 |
---|---|---|
committer | Thomas Arnhold <thomas@arnhold.org> | 2014-05-28 14:40:56 +0200 |
commit | 61328e692cf0f843631bdb2bd36daceb4883a948 (patch) | |
tree | 3ca71f436048a4d1007b5911aadcfb34721ff617 /starmath | |
parent | 480bb72515bf1bae07a0fcc0a8509d7bc0118ab7 (diff) |
starmath: no need to set those on every paint event
Change-Id: Ife149baf15d6f38a2a316e124b78bdb7e1b64967
Diffstat (limited to 'starmath')
-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; |