[Libreoffice-commits] core.git: Branch 'libreoffice-4-2' - starmath/source

Thomas Arnhold thomas at arnhold.org
Thu May 29 01:03:55 PDT 2014


 starmath/source/ElementsDockingWindow.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 2a21807a4ddaaba511e1a0bbd13301b0bc518019
Author: Thomas Arnhold <thomas at arnhold.org>
Date:   Wed May 28 09:40:40 2014 +0200

    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 at collabora.co.uk>
    Tested-by: Miklos Vajna <vmiklos at collabora.co.uk>

diff --git a/starmath/source/ElementsDockingWindow.cxx b/starmath/source/ElementsDockingWindow.cxx
index dc1a3bb..45672dd 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();


More information about the Libreoffice-commits mailing list