diff options
author | Cédric Bosdonnat <cedricbosdo@openoffice.org> | 2010-12-24 09:59:30 +0100 |
---|---|---|
committer | Cédric Bosdonnat <cedricbosdo@openoffice.org> | 2011-03-19 17:56:36 +0100 |
commit | a99d5769099a676ef74d774722ca84d156708e7c (patch) | |
tree | a58cd65e140d46ef3ec58763132e3d36f8ce3536 /cui | |
parent | c222db706db4c6c55b105fc4786d9bcb3315bbad (diff) |
Fix border selection page to use new width system
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/tabpages/border.cxx | 10 |
1 files changed, 2 insertions, 8 deletions
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; |