From 1558ee84dce09770ff80ad9984e84d6500b79bf5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Mon, 1 Oct 2012 09:42:40 +0100 Subject: [PATCH] menus are way too wide, wrong checkbox/radiobutton width Change-Id: Ib8f1a21f19812092e2561621909f74fd98af2857 --- vcl/source/window/menu.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vcl/source/window/menu.cxx b/vcl/source/window/menu.cxx index c8f2e9718d51..2920878724bc 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(); } } }