[Libreoffice-commits] .: Branch 'libreoffice-3-5' - sd/source

Ivan Timofeev ivantimofeev at kemper.freedesktop.org
Fri Dec 9 09:33:39 PST 2011


 sd/source/ui/dlg/navigatr.cxx |    7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

New commits:
commit 8c763915fbb11a261dbbf64280cabeefb7ca6c6a
Author: Ivan Timofeev <timofeev.i.s at gmail.com>
Date:   Fri Dec 9 21:23:50 2011 +0400

    fdo#39528: do not lose height of tree list box in Navigator

diff --git a/sd/source/ui/dlg/navigatr.cxx b/sd/source/ui/dlg/navigatr.cxx
index bb5bf26..3fb63a9 100644
--- a/sd/source/ui/dlg/navigatr.cxx
+++ b/sd/source/ui/dlg/navigatr.cxx
@@ -555,10 +555,11 @@ void SdNavigatorWin::Resize()
         maToolbox.SetOutputSizePixel( aObjSize );
 
         // Umgroessern der TreeLB
-        aObjSize = maTlbObjects.Control::GetOutputSizePixel();
+        aObjSize = maTlbObjects.GetSizePixel();
         aObjSize.Width() += aDiffSize.Width();
-        aObjSize.Height() += aDiffSize.Height();
-        maTlbObjects.SetOutputSizePixel( aObjSize );
+        aObjSize.Height() = maLbDocs.GetPosPixel().Y() + aDiffSize.Height() -
+            maTlbObjects.GetPosPixel().Y() - 4;
+        maTlbObjects.SetSizePixel( aObjSize );
 
         Point aPt( 0, aDiffSize.Height() );
 


More information about the Libreoffice-commits mailing list