From a99d5769099a676ef74d774722ca84d156708e7c Mon Sep 17 00:00:00 2001 From: Cédric Bosdonnat Date: Fri, 24 Dec 2010 09:59:30 +0100 Subject: Fix border selection page to use new width system --- cui/source/tabpages/border.cxx | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'cui') diff --git a/cui/source/tabpages/border.cxx b/cui/source/tabpages/border.cxx index 69da557dd2d8..c7549fd7ff6e 100644 --- a/cui/source/tabpages/border.cxx +++ b/cui/source/tabpages/border.cxx @@ -929,10 +929,7 @@ IMPL_LINK( SvxBorderTabPage, ModifyWidthHdl_Impl, void *, EMPTYARG ) sal_Int64 nVal = aLineWidthMF.GetValue( ); aLbLineStyle.SetWidth( nVal ); - aFrameSel.SetStyleToSelection( - static_cast< USHORT >( aLbLineStyle.GetSelectEntryLine1() / 5 ), - static_cast< USHORT >( aLbLineStyle.GetSelectEntryDistance() / 5 ), - static_cast< USHORT >( aLbLineStyle.GetSelectEntryLine2() / 5 ), + aFrameSel.SetStyleToSelection( long( nVal / 5 ), SvxBorderStyle( aLbLineStyle.GetSelectEntryStyle() ) ); return 0; @@ -943,10 +940,7 @@ IMPL_LINK( SvxBorderTabPage, ModifyWidthHdl_Impl, void *, EMPTYARG ) IMPL_LINK( SvxBorderTabPage, SelStyleHdl_Impl, ListBox *, pLb ) { if ( pLb == &aLbLineStyle ) - aFrameSel.SetStyleToSelection ( - static_cast< sal_uInt16 >( aLbLineStyle.GetSelectEntryLine1() / 5 ), - static_cast< sal_uInt16 >( aLbLineStyle.GetSelectEntryDistance() / 5 ), - static_cast< sal_uInt16 >( aLbLineStyle.GetSelectEntryLine2() / 5 ), + aFrameSel.SetStyleToSelection ( long( aLineWidthMF.GetValue() / 5 ), SvxBorderStyle( aLbLineStyle.GetSelectEntryStyle() ) ); return 0; -- cgit v1.2.3