cui/source/tabpages/paragrph.cxx | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-)
New commits: commit 39b3448300e9c265a4d38b83cf42d738d1ef50f4 Author: Miklos Vajna <vmik...@suse.cz> Date: Mon Mar 12 10:10:34 2012 +0100 SvxStdParagraphTabPage::Reset: no need to have two SvxULSpaceItem here diff --git a/cui/source/tabpages/paragrph.cxx b/cui/source/tabpages/paragrph.cxx index 597f753..5672b45 100644 --- a/cui/source/tabpages/paragrph.cxx +++ b/cui/source/tabpages/paragrph.cxx @@ -534,10 +534,10 @@ void SvxStdParagraphTabPage::Reset( const SfxItemSet& rSet ) { SfxMapUnit eUnit = pPool->GetMetric( _nWhich ); + const SvxULSpaceItem& rOldItem = + (const SvxULSpaceItem&)rSet.Get( _nWhich ); if ( bRelativeMode ) { - const SvxULSpaceItem& rOldItem = - (const SvxULSpaceItem&)rSet.Get( _nWhich ); if ( rOldItem.GetPropUpper() != 100 ) { @@ -571,10 +571,8 @@ void SvxStdParagraphTabPage::Reset( const SfxItemSet& rSet ) } else { - const SvxULSpaceItem& rTopMargin = - (const SvxULSpaceItem&)rSet.Get( _nWhich ); - SetMetricValue( aTopDist, rTopMargin.GetUpper(), eUnit ); - SetMetricValue( aBottomDist, rTopMargin.GetLower(), eUnit ); + SetMetricValue( aTopDist, rOldItem.GetUpper(), eUnit ); + SetMetricValue( aBottomDist, rOldItem.GetLower(), eUnit ); } } else _______________________________________________ Libreoffice-commits mailing list Libreoffice-commits@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits