[Libreoffice-commits] .: cui/source
Miklos Vajna
vmiklos at kemper.freedesktop.org
Mon Mar 12 02:12:05 PDT 2012
cui/source/tabpages/paragrph.cxx | 10 ++++------
1 file changed, 4 insertions(+), 6 deletions(-)
New commits:
commit 39b3448300e9c265a4d38b83cf42d738d1ef50f4
Author: Miklos Vajna <vmiklos at 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
More information about the Libreoffice-commits
mailing list