[Libreoffice-commits] core.git: vcl/osx
Noel Grandin
noel at peralex.com
Wed May 13 00:15:52 PDT 2015
vcl/osx/salnativewidgets.cxx | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
New commits:
commit c5c209427dbb3fc2932210ddc138421cfed1baa4
Author: Noel Grandin <noel at peralex.com>
Date: Wed May 13 09:14:34 2015 +0200
fix OSX build (take 2)
after my commit 7ac403aa7cb2bd531245280d88bdc9fe6553c711
"convert FRAME_DRAW constants to scoped enum"
Change-Id: I9aa8b267b5ca8f1ffaf2302c91d337f0906089f8
diff --git a/vcl/osx/salnativewidgets.cxx b/vcl/osx/salnativewidgets.cxx
index 0e762ed..fc033f5 100644
--- a/vcl/osx/salnativewidgets.cxx
+++ b/vcl/osx/salnativewidgets.cxx
@@ -1319,9 +1319,10 @@ bool AquaSalGraphics::getNativeControlRegion( ControlType nType, ControlPart nPa
break;
case CTRL_FRAME:
{
- DrawFrameFlags nStyle = static_cast<DrawFrameFlags>(aValue.getNumericVal());
+ DrawFrameStyle nStyle = static_cast<DrawFrameStyle>(aValue.getNumericVal() & 0x000f);
+ DrawFrameFlags nFlags = static_cast<DrawFrameFlags>(aValue.getNumericVal() & 0xfff0);
if( ( nPart == PART_BORDER ) &&
- !( nStyle & (DrawFrameFlags::Menu | DrawFrameFlags::WindowBorder | DrawFrameFlags::BorderWindowBorder) ) )
+ !( nFlags & (DrawFrameFlags::Menu | DrawFrameFlags::WindowBorder | DrawFrameFlags::BorderWindowBorder) ) )
{
Rectangle aRect(aCtrlBoundRect);
if( nStyle & DrawFrameStyle::DoubleIn )
More information about the Libreoffice-commits
mailing list