summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--vcl/source/control/tabctrl.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/control/tabctrl.cxx b/vcl/source/control/tabctrl.cxx
index 1931ac9b36aa..a0553a3c120e 100644
--- a/vcl/source/control/tabctrl.cxx
+++ b/vcl/source/control/tabctrl.cxx
@@ -1118,7 +1118,7 @@ void TabControl::ImplPaint( const Rectangle& rRect, bool bLayout )
if (IsNativeControlSupported(CTRL_TAB_HEADER, PART_ENTIRE_CONTROL))
{
- Rectangle aHeaderRect(0, 0, GetSizePixel().Width(), aRect.Top());
+ Rectangle aHeaderRect(aRect.Left(), 0, aRect.Right(), aRect.Top());
aClipRgn = GetActiveClipRegion();
aClipRgn.Intersect( aHeaderRect );