summaryrefslogtreecommitdiff
path: root/sc/source/ui/view/gridwin4.cxx
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2013-03-13 22:28:52 +0100
committerMichael Stahl <mstahl@redhat.com>2013-03-13 22:29:46 +0100
commit38d3e115c159f19f22de73ece1abe609d75a041e (patch)
tree63ffe74cb9b8fcc52617b616d02cc2504a0d0e11 /sc/source/ui/view/gridwin4.cxx
parent913f175b321caf7a99957fd7c4dc536f4101ab53 (diff)
vcl: make Region ctors explicit to prevent overloading desasters
Change-Id: Id36d125b4940418833bec31a4710d6cd545629e0
Diffstat (limited to 'sc/source/ui/view/gridwin4.cxx')
-rw-r--r--sc/source/ui/view/gridwin4.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sc/source/ui/view/gridwin4.cxx b/sc/source/ui/view/gridwin4.cxx
index 1103e5cf68e0..767dfd2ef8dd 100644
--- a/sc/source/ui/view/gridwin4.cxx
+++ b/sc/source/ui/view/gridwin4.cxx
@@ -156,8 +156,8 @@ static void lcl_DrawOneFrame( OutputDevice* pDev, const Rectangle& rInnerPixel,
}
long nClipStartX = bLayoutRTL ? aOuter.Left() + nBWidth : aInner.Left();
long nClipEndX = bLayoutRTL ? aInner.Right() : aOuter.Right() - nBWidth;
- pDev->SetClipRegion( Rectangle( nClipStartX, nButtonY + nVer/2,
- nClipEndX, nButtonY + nVer/2 + aTextSize.Height() ) );
+ pDev->SetClipRegion( Region(Rectangle( nClipStartX, nButtonY + nVer/2,
+ nClipEndX, nButtonY + nVer/2 + aTextSize.Height())) );
}
pDev->DrawText( Point( nTextStart, nButtonY + nVer/2 ), rTitle );
@@ -1252,7 +1252,7 @@ void ScGridWindow::DrawButtons( SCCOL nX1, SCCOL nX2, ScTableInfo& rTabInfo, Out
Rectangle aRect = GetListValButtonRect( aListValPos );
aComboButton.SetPosPixel( aRect.TopLeft() );
aComboButton.SetSizePixel( aRect.GetSize() );
- pContentDev->SetClipRegion( aRect );
+ pContentDev->SetClipRegion(Region(aRect));
aComboButton.Draw( false, false );
pContentDev->SetClipRegion(); // always called from Draw() without clip region
aComboButton.SetPosPixel( aOldPos ); // restore old state