From 3a603d376a2bc2b839be3b89a8ecf8df1c42260b Mon Sep 17 00:00:00 2001 From: Ivan Timofeev Date: Sat, 14 Apr 2012 20:51:20 +0400 Subject: [PATCH] vcl: win: adjust some coordinates --- vcl/win/source/gdi/salnativewidgets-luna.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vcl/win/source/gdi/salnativewidgets-luna.cxx b/vcl/win/source/gdi/salnativewidgets-luna.cxx index 3b0051ab8889..888b1a736fc9 100644 --- a/vcl/win/source/gdi/salnativewidgets-luna.cxx +++ b/vcl/win/source/gdi/salnativewidgets-luna.cxx @@ -986,7 +986,7 @@ sal_Bool ImplDrawNativeControl( HDC hDC, HTHEME hTheme, RECT rc, RECT aGutterRC = rc; if( Application::GetSettings().GetLayoutRTL() ) { - aGutterRC.right -= aValue.getNumericVal(); + aGutterRC.right -= aValue.getNumericVal()+1; aGutterRC.left = aGutterRC.right-3; } else @@ -1043,9 +1043,9 @@ sal_Bool ImplDrawNativeControl( HDC hDC, HTHEME hTheme, RECT rc, { // adjust for gutter position if( Application::GetSettings().GetLayoutRTL() ) - rc.right -= aValue.getNumericVal(); + rc.right -= aValue.getNumericVal()+1; else - rc.left += aValue.getNumericVal(); + rc.left += aValue.getNumericVal()+1; Rectangle aRect( ImplGetThemeRect( hTheme, hDC, MENU_POPUPSEPARATOR, 0, Rectangle( rc.left, rc.top, rc.right, rc.bottom ) ) ); // center the separator inside the passed rectangle