[Libreoffice-commits] core.git: formula/source

Eike Rathke erack at redhat.com
Thu Oct 8 03:48:31 PDT 2015


 formula/source/ui/dlg/parawin.cxx |   12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)

New commits:
commit 4c5ebb2503cbba7357cc7badfbf6f16faae9c64b
Author: Eike Rathke <erack at redhat.com>
Date:   Thu Oct 8 12:42:42 2015 +0200

    leave room for three lines of text in function description
    
    ... so we can get a little bit more verbose. The new "this is for
    interop with old ... instead use ..." description fit into the function
    overview but was truncated in the parameter window.
    
    Change-Id: I73c5e6cfb64a2b1573ab15f5ceb6aa16e6da4a99

diff --git a/formula/source/ui/dlg/parawin.cxx b/formula/source/ui/dlg/parawin.cxx
index 8c9b33a..0bec0bb 100644
--- a/formula/source/ui/dlg/parawin.cxx
+++ b/formula/source/ui/dlg/parawin.cxx
@@ -47,11 +47,15 @@ ParaWin::ParaWin(vcl::Window* pParent,IControlReferenceHandler* _pDlg):
     get(m_pFtArgName, "parname");
     get(m_pFtArgDesc, "pardesc");
 
-    //Space for two lines of text
+    // Space for three lines of text in function description.
+    m_pFtEditDesc->SetText("X\nX\nX\n");
+    long nEditHeight = m_pFtEditDesc->GetOptimalSize().Height();
+    m_pFtEditDesc->set_height_request(nEditHeight);
+    m_pFtEditDesc->SetText("");
+    // Space for two lines of text in parameter description.
     m_pFtArgDesc->SetText("X\nX\n");
-    long nHeight = m_pFtArgDesc->GetOptimalSize().Height();
-    m_pFtEditDesc->set_height_request(nHeight);
-    m_pFtArgDesc->set_height_request(nHeight);
+    long nArgHeight = m_pFtArgDesc->GetOptimalSize().Height();
+    m_pFtArgDesc->set_height_request(nArgHeight);
     m_pFtArgDesc->SetText("");
 
     get(m_pBtnFx1, "FX1");


More information about the Libreoffice-commits mailing list