diff options
author | Luboš Luňák <l.lunak@suse.cz> | 2011-02-10 12:12:28 +0100 |
---|---|---|
committer | Luboš Luňák <l.lunak@suse.cz> | 2011-02-10 12:12:28 +0100 |
commit | 410c5de49d47ecfbc9926e585d0a24f0d6f1f901 (patch) | |
tree | eaeb48cb9c3c21bd3f4a4aba7a1b1823afeabf54 /vcl | |
parent | ce0f300fb5c4208e7c34f4da8f6bea959505f076 (diff) |
properly fix incorrect recent backport
ACK by Kendy
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/unx/kde4/KDESalGraphics.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/vcl/unx/kde4/KDESalGraphics.cxx b/vcl/unx/kde4/KDESalGraphics.cxx index 314fc0a9af91..166c4880f91d 100644 --- a/vcl/unx/kde4/KDESalGraphics.cxx +++ b/vcl/unx/kde4/KDESalGraphics.cxx @@ -354,7 +354,9 @@ BOOL KDESalGraphics::drawNativeControl( ControlType type, ControlPart part, { // reduce paint area only to the handle area const int width = kapp->style()->pixelMetric(QStyle::PM_ToolBarHandleExtent); QRect rect( 0, 0, width, widgetRect.height()); - QRegion* clipRegion = new QRegion( widgetRect.x(), widgetRect.y(), width, widgetRect.height()); + pTempClipRegion = XCreateRegion(); + XRectangle xRect = { widgetRect.x(), widgetRect.y(), width, widgetRect.height() }; + XUnionRectWithRegion( &xRect, pTempClipRegion, pTempClipRegion ); QStyleOption option; option.state = QStyle::State_Horizontal; |