summaryrefslogtreecommitdiff
path: root/sw/source/uibase/uiview/viewtab.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/uibase/uiview/viewtab.cxx')
-rw-r--r--sw/source/uibase/uiview/viewtab.cxx25
1 files changed, 4 insertions, 21 deletions
diff --git a/sw/source/uibase/uiview/viewtab.cxx b/sw/source/uibase/uiview/viewtab.cxx
index 5fa4446755b4..2a42029afd2c 100644
--- a/sw/source/uibase/uiview/viewtab.cxx
+++ b/sw/source/uibase/uiview/viewtab.cxx
@@ -1329,18 +1329,9 @@ void SwView::StateTabWin(SfxItemSet& rSet)
aLongLR.SetRight(rPageRect.Right() - aRect.Right());
}
}
- if( nWhich == SID_ATTR_LONG_LRSPACE )
- rSet.Put( aLongLR );
- else
- {
- SvxLRSpaceItem aLR( aLongLR.GetLeft(),
- aLongLR.GetRight(),
- 0, 0,
- nWhich);
- rSet.Put(aLR);
- }
- break;
+ rSet.Put( aLongLR );
}
+ break;
// provide left and right margins of current page style
case SID_ATTR_PAGE_LRSPACE:
@@ -1387,17 +1378,9 @@ void SwView::StateTabWin(SfxItemSet& rSet)
aLongUL.SetUpper(rPagePrtRect.Top());
aLongUL.SetLower(nPageHeight - rPagePrtRect.Bottom());
}
- if( nWhich == SID_ATTR_LONG_ULSPACE )
- rSet.Put( aLongUL );
- else
- {
- SvxULSpaceItem aULTmp(static_cast<sal_uInt16>(aLongUL.GetUpper()),
- static_cast<sal_uInt16>(aLongUL.GetLower()),
- nWhich);
- rSet.Put(aULTmp);
- }
- break;
+ rSet.Put( aLongUL );
}
+ break;
// provide top and bottom margins of current page style
case SID_ATTR_PAGE_ULSPACE: