diff options
author | Tor Lillqvist <tlillqvist@novell.com> | 2011-05-02 13:19:40 +0300 |
---|---|---|
committer | Tor Lillqvist <tlillqvist@novell.com> | 2011-05-02 13:25:19 +0300 |
commit | 10c128616e2381f68d1164612dfde7bdf1cb030f (patch) | |
tree | 1a1e000c91c7235faba5877d4521e0bfa18a6316 | |
parent | 1385ee42a3206f7613a8c17162fb0f29059e6bb4 (diff) |
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.
-rw-r--r-- | vcl/source/gdi/outdevnative.cxx | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/vcl/source/gdi/outdevnative.cxx b/vcl/source/gdi/outdevnative.cxx index 4ac1d4610b3f..5ae7baaa9d89 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 ) |