Kaydet (Commit) 5b76c502 authored tarafından Noel Grandin's avatar Noel Grandin

fix OSX build

after my commit 7ac403aa7cb2bd531245280d88bdc9fe6553c711
"convert FRAME_DRAW constants to scoped enum"

Change-Id: Id76d76d5549cd09b35b1d9e8fb68c9549f9fd3a9
üst 4c27e841
......@@ -1013,7 +1013,7 @@ bool AquaSalGraphics::drawNativeControl(ControlType nType,
case CTRL_FRAME:
{
sal_uInt16 nStyle = aValue.getNumericVal();
DrawFrameFlags nStyle = static_cast<DrawFrameFlags>(aValue.getNumericVal());
if( nPart == PART_BORDER ) {
if(!( nStyle & DrawFrameFlags::Menu ) && !(nStyle & DrawFrameFlags::WindowBorder) )
{
......@@ -1319,7 +1319,7 @@ bool AquaSalGraphics::getNativeControlRegion( ControlType nType, ControlPart nPa
break;
case CTRL_FRAME:
{
sal_uInt16 nStyle = aValue.getNumericVal();
DrawFrameFlags nStyle = static_cast<DrawFrameFlags>(aValue.getNumericVal());
if( ( nPart == PART_BORDER ) &&
!( nStyle & (DrawFrameFlags::Menu | DrawFrameFlags::WindowBorder | DrawFrameFlags::BorderWindowBorder) ) )
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment