[Libreoffice-commits] .: vcl/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Mon Oct 1 01:45:30 PDT 2012


 vcl/source/window/menu.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 1558ee84dce09770ff80ad9984e84d6500b79bf5
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Mon Oct 1 09:42:40 2012 +0100

    menus are way too wide, wrong checkbox/radiobutton width
    
    Change-Id: Ib8f1a21f19812092e2561621909f74fd98af2857

diff --git a/vcl/source/window/menu.cxx b/vcl/source/window/menu.cxx
index c8f2e97..2920878 100644
--- a/vcl/source/window/menu.cxx
+++ b/vcl/source/window/menu.cxx
@@ -2254,7 +2254,7 @@ Size Menu::ImplGetNativeCheckAndRadioSize( Window* pWin, long& rCheckHeight, lon
             )
             {
                 rCheckHeight = aNativeBounds.GetHeight();
-                nCheckWidth = aNativeBounds.GetWidth();
+                nCheckWidth = aNativeContent.GetWidth();
             }
         }
         if( pWin->IsNativeControlSupported( CTRL_MENU_POPUP, PART_MENU_ITEM_RADIO_MARK ) )
@@ -2270,7 +2270,7 @@ Size Menu::ImplGetNativeCheckAndRadioSize( Window* pWin, long& rCheckHeight, lon
             )
             {
                 rRadioHeight = aNativeBounds.GetHeight();
-                nRadioWidth = aNativeBounds.GetWidth();
+                nRadioWidth = aNativeContent.GetWidth();
             }
         }
     }


More information about the Libreoffice-commits mailing list