From cc5baa41fee257498661320e24169bb3f05391fb Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Tue, 12 May 2015 09:53:41 +0100 Subject: fix build Change-Id: I2afc99ec7b54f366044835a8d8e1ceeb1783ca2c --- svtools/source/toolpanel/paneltabbar.cxx | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'svtools') diff --git a/svtools/source/toolpanel/paneltabbar.cxx b/svtools/source/toolpanel/paneltabbar.cxx index 4c12b9fc92f2..b1f28b5ed2a4 100644 --- a/svtools/source/toolpanel/paneltabbar.cxx +++ b/svtools/source/toolpanel/paneltabbar.cxx @@ -296,7 +296,10 @@ namespace svt { const ControlState nState( lcl_ItemToControlState( i_nItemFlags ) ); - TabitemValue tiValue; + TabitemValue tiValue(Rectangle(i_rContentArea.Left() + TAB_TABOFFSET_X, + i_rContentArea.Right() - TAB_TABOFFSET_X, + i_rContentArea.Top() + TAB_TABOFFSET_Y, + i_rContentArea.Bottom() - TAB_TABOFFSET_Y)); Rectangle aBoundingRegion, aContentRegion; bool bNativeOK = getTargetDevice().GetNativeControlRegion( @@ -316,7 +319,11 @@ namespace svt { const ControlState nState = lcl_ItemToControlState( i_nItemFlags ); - TabitemValue tiValue; + TabitemValue tiValue(Rectangle(i_rContentRect.Left() + TAB_TABOFFSET_X, + i_rContentRect.Right() - TAB_TABOFFSET_X, + i_rContentRect.Top() + TAB_TABOFFSET_Y, + i_rContentRect.Bottom() - TAB_TABOFFSET_Y)); + if ( i_nItemFlags & ITEM_POSITION_FIRST ) tiValue.mnAlignment |= TABITEM_FIRST_IN_GROUP; if ( i_nItemFlags & ITEM_POSITION_LAST ) -- cgit