diff options
author | Ivan Timofeev <timofeev.i.s@gmail.com> | 2012-04-14 20:42:23 +0400 |
---|---|---|
committer | Ivan Timofeev <timofeev.i.s@gmail.com> | 2012-04-14 20:59:56 +0400 |
commit | 532904765073c827bed3181d97c217909db1843f (patch) | |
tree | fc3605da9efcd30611bf84e79745395b7132c3eb /vcl | |
parent | 7928b651965f747b02593d2a9fc73fac7c86dbf5 (diff) |
vcl: hack: pData->aSz.Width() is set only for MenuBar, use aOutSz.Width()
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/window/menu.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/vcl/source/window/menu.cxx b/vcl/source/window/menu.cxx index 73283f3ea918..eaca00dc0c9c 100644 --- a/vcl/source/window/menu.cxx +++ b/vcl/source/window/menu.cxx @@ -2751,7 +2751,10 @@ void Menu::ImplPaint( Window* pWin, sal_uInt16 nBorder, long nStartY, MenuItemDa aTmpPos.Y() = aOuterCheckRect.Top() + (aOuterCheckRect.GetHeight() - nCtrlHeight)/2; Rectangle aCheckRect( aTmpPos, Size( nCtrlHeight, nCtrlHeight ) ); - MenupopupValue aVal( nTextPos-GUTTERBORDER, Rectangle( aPos, pData->aSz ) ); + Size aSz( pData->aSz ); + aSz.Width() = aOutSz.Width() - 2*nOuterSpace; + Rectangle aItemRect( aPos, aSz ); + MenupopupValue aVal( nTextPos-GUTTERBORDER, aItemRect ); pWin->DrawNativeControl( CTRL_MENU_POPUP, nPart, aCheckRect, nState, |