[Libreoffice-commits] .: vcl/unx
Lubos Lunak
llunak at kemper.freedesktop.org
Tue Dec 14 07:02:23 PST 2010
vcl/unx/kde4/KDESalGraphics.cxx | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
New commits:
commit 2a96c19bb7854bd4754715152939c21f3f7bfd0a
Author: LuboÅ¡ LuÅák <l.lunak at suse.cz>
Date: Tue Dec 14 15:47:53 2010 +0100
avoid 'error: narrowing conversion of ... inside { }'
presumably triggered by enabling c++0x
diff --git a/vcl/unx/kde4/KDESalGraphics.cxx b/vcl/unx/kde4/KDESalGraphics.cxx
index fb8b3b9..26b65b7 100644
--- a/vcl/unx/kde4/KDESalGraphics.cxx
+++ b/vcl/unx/kde4/KDESalGraphics.cxx
@@ -501,7 +501,11 @@ BOOL KDESalGraphics::drawNativeControl( ControlType type, ControlPart part,
// draw just the border, see http://qa.openoffice.org/issues/show_bug.cgi?id=107945
int nFrameWidth = getFrameWidth();
pTempClipRegion = XCreateRegion();
- XRectangle xRect = { widgetRect.left(), widgetRect.top(), widgetRect.width(), widgetRect.height() };
+ XRectangle xRect;
+ xRect.x = widgetRect.left();
+ xRect.y = widgetRect.top();
+ xRect.width = widgetRect.width();
+ xRect.height = widgetRect.height();
XUnionRectWithRegion( &xRect, pTempClipRegion, pTempClipRegion );
xRect.x += nFrameWidth;
xRect.y += nFrameWidth;
More information about the Libreoffice-commits
mailing list