From ab216f7039d473a4e7b6c08d868d4dc376161539 Mon Sep 17 00:00:00 2001 From: Thorsten Behrens Date: Tue, 19 May 2015 14:32:04 +0200 Subject: Accomodate gcc 4.2's inabilities to cope with complex templates. Change-Id: I0a35849a02e3f185783c261a369052594583b082 --- vcl/source/window/decoview.cxx | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'vcl/source/window/decoview.cxx') diff --git a/vcl/source/window/decoview.cxx b/vcl/source/window/decoview.cxx index baba1e478493..e560ccf29573 100644 --- a/vcl/source/window/decoview.cxx +++ b/vcl/source/window/decoview.cxx @@ -653,9 +653,12 @@ void ImplDrawFrame( OutputDevice *const pDev, Rectangle& rRect, if( nStyle != DrawFrameStyle::NWF && pWin && pWin->IsNativeControlSupported(CTRL_FRAME, PART_BORDER) ) { - ImplControlValue aControlValue( static_cast(nStyle) | static_cast(nFlags) | - static_cast(pWin->GetType()==WINDOW_BORDERWINDOW ? - DrawFrameFlags::BorderWindowBorder : DrawFrameFlags::NONE) ); + long nControlFlags = static_cast(nStyle); + nControlFlags |= static_cast(nFlags); + nControlFlags |= static_cast(pWin->GetType()==WINDOW_BORDERWINDOW ? + DrawFrameFlags::BorderWindowBorder : DrawFrameFlags::NONE); + ImplControlValue aControlValue( nControlFlags ); + Rectangle aBound, aContent; Rectangle aNatRgn( rRect ); if( pWin->GetNativeControlRegion(CTRL_FRAME, PART_BORDER, -- cgit