[Libreoffice-commits] core.git: vcl/unx
Stephan Bergmann
sbergman at redhat.com
Wed May 13 00:44:14 PDT 2015
vcl/unx/kde4/KDESalGraphics.cxx | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit cf301dcd0c353b7460914d0d7e31f3f8a1db2a34
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Wed May 13 09:43:40 2015 +0200
Make it more obvious that the value combines DrawFrameFlags|DrawFrameStyle
Change-Id: I60b92fe2f9120b03293e5f880bb94a6c85e5a7ab
diff --git a/vcl/unx/kde4/KDESalGraphics.cxx b/vcl/unx/kde4/KDESalGraphics.cxx
index 3f5355a..b77aa0c 100644
--- a/vcl/unx/kde4/KDESalGraphics.cxx
+++ b/vcl/unx/kde4/KDESalGraphics.cxx
@@ -839,7 +839,8 @@ bool KDESalGraphics::getNativeControlRegion( ControlType type, ControlPart part,
if( part == PART_BORDER )
{
int nFrameWidth = static_cast< KDESalInstance* >(GetSalData()->m_pInstance)->getFrameWidth();
- auto nStyle = static_cast<DrawFrameFlags>(val.getNumericVal());
+ auto nStyle = static_cast<DrawFrameFlags>(
+ val.getNumericVal() & 0xFFF0);
if( nStyle & DrawFrameFlags::NoDraw )
{
// in this case the question is: how thick would a frame be
More information about the Libreoffice-commits
mailing list