diff options
author | Thomas Arnhold <thomas@arnhold.org> | 2014-05-28 09:40:40 +0200 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2014-06-02 19:01:56 +0200 |
commit | c7aecc063f92f5aeee56adf1ca5caba19615b169 (patch) | |
tree | cb226995bf02aef4591dec4a6cb045121865e9c4 /starmath | |
parent | 86c5aaeaa3a3cf187ace25dbdb47b3ab01bc0967 (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
Reviewed-on: https://gerrit.libreoffice.org/9524
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Miklos Vajna <vmiklos@collabora.co.uk>
Diffstat (limited to 'starmath')
-rw-r--r-- | starmath/source/ElementsDockingWindow.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/starmath/source/ElementsDockingWindow.cxx b/starmath/source/ElementsDockingWindow.cxx index dc1a3bb9bb6f..45672ddf7fac 100644 --- a/starmath/source/ElementsDockingWindow.cxx +++ b/starmath/source/ElementsDockingWindow.cxx @@ -211,7 +211,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(); |