diff options
author | Miklos Vajna <vmiklos@suse.cz> | 2012-03-12 10:10:34 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@suse.cz> | 2012-03-12 10:12:10 +0100 |
commit | 39b3448300e9c265a4d38b83cf42d738d1ef50f4 (patch) | |
tree | 0bc62fd0d1f917fc7441b50c67fa0de2ccf159bb /cui | |
parent | Add patch to recognize Android (diff) | |
download | core-39b3448300e9c265a4d38b83cf42d738d1ef50f4.tar.gz core-39b3448300e9c265a4d38b83cf42d738d1ef50f4.zip |
SvxStdParagraphTabPage::Reset: no need to have two SvxULSpaceItem here
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/tabpages/paragrph.cxx | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/cui/source/tabpages/paragrph.cxx b/cui/source/tabpages/paragrph.cxx index 597f753cb2b1..5672b4537533 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 |