[Libreoffice-commits] .: cui/source

Ivan Timofeev ivantimofeev at kemper.freedesktop.org
Mon Jun 4 00:29:18 PDT 2012


 cui/source/options/treeopt.cxx |   10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

New commits:
commit b45aa8d59351e78660ef504e0c8433c5011e6e09
Author: Ivan Timofeev <timofeev.i.s at gmail.com>
Date:   Mon Jun 4 11:28:49 2012 +0400

    scatterbrain forgot to amend the previous commit
    
    Change-Id: Id26bb075d02be3d6ddfd457afd36c5d1114122e4

diff --git a/cui/source/options/treeopt.cxx b/cui/source/options/treeopt.cxx
index 809943b..95a52c6 100644
--- a/cui/source/options/treeopt.cxx
+++ b/cui/source/options/treeopt.cxx
@@ -1103,12 +1103,10 @@ void OfaTreeOptionsDialog::SelectHdl_Impl()
 
         pPageInfo->m_pExtPage = new ExtensionsTabPage(
             this, 0, pPageInfo->m_sPageURL, pPageInfo->m_sEventHdl, m_xContainerWinProvider );
-        Size aSize;
-        aSize.Width() = aSeparatorFL.GetSizePixel().Width();
-        aSize.Height() = aSeparatorFL.GetSizePixel().Height() - aTreeLB.GetPosPixel().Y();
-        Point aPos;
-        aPos.X() = aSeparatorFL.GetPosPixel().X();
-        aPos.Y() = aTreeLB.GetPosPixel().Y();
+
+        Point aPos(aSeparatorFL.GetPosPixel().X(), aTreeLB.GetPosPixel().Y());
+        Size aSize(aSeparatorFL.GetSizePixel().Width(),
+                   aSeparatorFL.GetPosPixel().Y() - aTreeLB.GetPosPixel().Y());
         pPageInfo->m_pExtPage->SetPosSizePixel( aPos, aSize );
     }
 


More information about the Libreoffice-commits mailing list