[Libreoffice-commits] core.git: Branch 'aoo/trunk' - starmath/source

Matthias Seidel (via logerrit) logerrit at kemper.freedesktop.org
Sun May 5 18:08:20 UTC 2019


 starmath/source/toolbox.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit b0a43fc66fdc2a4aacff989de7c3d5034a917b69
Author:     Matthias Seidel <mseidel at apache.org>
AuthorDate: Sun May 5 17:45:04 2019 +0000
Commit:     Matthias Seidel <mseidel at apache.org>
CommitDate: Sun May 5 17:45:04 2019 +0000

    Set initial size to 5 lines for math toolbox

diff --git a/starmath/source/toolbox.cxx b/starmath/source/toolbox.cxx
index bcbfa00b8f67..45a7c8f22dda 100644
--- a/starmath/source/toolbox.cxx
+++ b/starmath/source/toolbox.cxx
@@ -256,7 +256,7 @@ void SmToolBoxWindow::StateChanged( StateChangedType nStateChange )
 void SmToolBoxWindow::AdjustPosSize( sal_Bool bSetPos )
 {
     Size aCatSize( aToolBoxCat.CalcWindowSizePixel( 2 ) );
-    Size aCmdSize( pToolBoxCmd->CalcWindowSizePixel( 4 /* see nLines in SetCategory */ ) );
+    Size aCmdSize( pToolBoxCmd->CalcWindowSizePixel( 5 /* see nLines in SetCategory */ ) );
     DBG_ASSERT( aCatSize.Width() == aCmdSize.Width(), "width mismatch" );
 
     // catalog settings
@@ -324,7 +324,7 @@ void SmToolBoxWindow::SetCategory(sal_uInt16 nCategoryRID)
     // check for valid resource id
     switch (nCategoryRID)
     {
-        case RID_UNBINOPS_CAT :     nLines = 4; break;
+        case RID_UNBINOPS_CAT :     nLines = 5; break;
         case RID_RELATIONS_CAT:     nLines = 5; break;
         case RID_SETOPERATIONS_CAT: nLines = 5; break;
         case RID_FUNCTIONS_CAT:     nLines = 5; break;


More information about the Libreoffice-commits mailing list