diff options
Diffstat (limited to 'vcl/source/control/spinfld.cxx')
-rw-r--r-- | vcl/source/control/spinfld.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/vcl/source/control/spinfld.cxx b/vcl/source/control/spinfld.cxx index e71cfbb60406..a6c558317eea 100644 --- a/vcl/source/control/spinfld.cxx +++ b/vcl/source/control/spinfld.cxx @@ -98,8 +98,8 @@ bool ImplDrawNativeSpinfield( vcl::Window *pWin, const SpinbuttonValue& rSpinbut // convert from screen space to borderwin space aClipRect.SetPos( pBorder->ScreenToOutputPixel(pWin->OutputToScreenPixel(aClipRect.TopLeft())) ); - Region oldRgn( pBorder->GetClipRegion() ); - pBorder->SetClipRegion( Region( aClipRect ) ); + vcl::Region oldRgn( pBorder->GetClipRegion() ); + pBorder->SetClipRegion( vcl::Region( aClipRect ) ); Point aPt; Size aSize( pBorder->GetOutputSizePixel() ); // the size of the border window, i.e., the whole control @@ -116,7 +116,7 @@ bool ImplDrawNativeSpinfield( vcl::Window *pWin, const SpinbuttonValue& rSpinbut bNativeOK = pBorder->DrawNativeControl( CTRL_SPINBOX, PART_ENTIRE_CONTROL, aRgn, CTRL_STATE_ENABLED, rSpinbuttonValue, OUString() ); - pBorder->SetClipRegion(Region(oldRgn)); + pBorder->SetClipRegion(vcl::Region(oldRgn)); } } return bNativeOK; @@ -879,16 +879,16 @@ bool SpinField::PreNotify( NotifyEvent& rNEvt ) else { // paint directly - Region aRgn( GetActiveClipRegion() ); + vcl::Region aRgn( GetActiveClipRegion() ); if( pLastRect ) { - SetClipRegion(Region(*pLastRect)); + SetClipRegion(vcl::Region(*pLastRect)); Paint( *pLastRect ); SetClipRegion( aRgn ); } if( pRect ) { - SetClipRegion(Region(*pRect)); + SetClipRegion(vcl::Region(*pRect)); Paint( *pRect ); SetClipRegion( aRgn ); } |