summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Arnhold <thomas@arnhold.org>2014-05-28 09:40:40 +0200
committerThomas Arnhold <thomas@arnhold.org>2014-05-28 09:46:35 +0200
commit1483a478adb2ad535f665b53ba39ab8664bc34e7 (patch)
treeaf27e1da6cb0812de1419683c143d1859a1ea157
parentd7c8b4adb334d6dbab4fd35b885b6b6b4bb83151 (diff)
Related fdo#71616: Set correct BaseSize
BaseSize has to be set in 100th mm, otherwise the scalable brackets are far too thin. See starmath/source/cfgitem.cxx: pFormat->SetBaseSize( Size(0, SmPtsTo100th_mm( nTmp16 )) ); nTmp16 is 12pt -> 422 100th mm (at least for me). Let's reuse that. Change-Id: I69571ae002f790199ab423955b1635eda42096eb
-rw-r--r--starmath/source/ElementsDockingWindow.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/starmath/source/ElementsDockingWindow.cxx b/starmath/source/ElementsDockingWindow.cxx
index 7d8a8efc579f..81e9d79b025f 100644
--- a/starmath/source/ElementsDockingWindow.cxx
+++ b/starmath/source/ElementsDockingWindow.cxx
@@ -220,7 +220,7 @@ SmElementsControl::SmElementsControl(Window *pParent, const ResId& rResId)
, mbVerticalMode(true)
, mpScroll(new ScrollBar(this, WB_VERT))
{
- maFormat.SetBaseSize(PixelToLogic(Size(0, 24)));
+ maFormat.SetBaseSize(PixelToLogic(Size(0, SmPtsTo100th_mm(12))));
mpScroll->SetScrollHdl( LINK(this, SmElementsControl, ScrollHdl) );
mpScroll->Show();