[Libreoffice-commits] .: Branch 'libreoffice-3-4' - vcl/source
Tor Lillqvist
tml at kemper.freedesktop.org
Mon May 2 03:29:18 PDT 2011
vcl/source/gdi/outdevnative.cxx | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
New commits:
commit 8ea63a59f14c4f0bb9d5e8bdcf6c25a376bb879d
Author: Tor Lillqvist <tlillqvist at novell.com>
Date: Mon May 2 13:19:40 2011 +0300
Fix for fdo#36481: Spinboxes missing up/down arrows on Windows
Bypass test for empty control region (rectangle) on Windows. Obviously
just a stopgap measure. More insightful fix welcome.
diff --git a/vcl/source/gdi/outdevnative.cxx b/vcl/source/gdi/outdevnative.cxx
index 4e0065c..de46bca 100644
--- a/vcl/source/gdi/outdevnative.cxx
+++ b/vcl/source/gdi/outdevnative.cxx
@@ -236,7 +236,14 @@ sal_Bool OutputDevice::DrawNativeControl( ControlType nType,
if ( mbInitClipRegion )
ImplInitClipRegion();
- if ( mbOutputClipped || rControlRegion.IsEmpty() )
+ if ( mbOutputClipped
+#ifndef WNT
+ // This check causes spin buttons to not be drawn on Windows,
+ // see fdo#36481 . Presumably it is useful on other plaforms,
+ // though.
+ || rControlRegion.IsEmpty()
+#endif
+ )
return sal_True;
if ( mbInitLineColor )
More information about the Libreoffice-commits
mailing list