summaryrefslogtreecommitdiff
path: root/cui
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@suse.cz>2012-03-12 10:10:34 +0100
committerMiklos Vajna <vmiklos@suse.cz>2012-03-12 10:12:10 +0100
commit39b3448300e9c265a4d38b83cf42d738d1ef50f4 (patch)
tree0bc62fd0d1f917fc7441b50c67fa0de2ccf159bb /cui
parent2f465a8863ada2b620440e239fb5e48df581253f (diff)
SvxStdParagraphTabPage::Reset: no need to have two SvxULSpaceItem here
Diffstat (limited to 'cui')
-rw-r--r--cui/source/tabpages/paragrph.cxx10
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