[Libreoffice-commits] .: Branch 'libreoffice-3-3' - vcl/unx
Lubos Lunak
llunak at kemper.freedesktop.org
Thu Feb 10 03:13:01 PST 2011
vcl/unx/kde4/KDESalGraphics.cxx | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
New commits:
commit 8dd029aa89f4e980442ddc0361c8831421190823
Author: LuboÅ¡ LuÅák <l.lunak at suse.cz>
Date: Thu Feb 10 12:12:28 2011 +0100
properly fix incorrect recent backport
ACK by Kendy
diff --git a/vcl/unx/kde4/KDESalGraphics.cxx b/vcl/unx/kde4/KDESalGraphics.cxx
index d3eb7e7..925696a 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;
More information about the Libreoffice-commits
mailing list