summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sw/source/uibase/shells/tabsh.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/sw/source/uibase/shells/tabsh.cxx b/sw/source/uibase/shells/tabsh.cxx
index 338238dd66b1..237e747da04e 100644
--- a/sw/source/uibase/shells/tabsh.cxx
+++ b/sw/source/uibase/shells/tabsh.cxx
@@ -271,11 +271,10 @@ void ItemSetToTableParam( const SfxItemSet& rSet,
rSh.StartUndo( UNDO_TABLE_ATTR );
const SfxPoolItem* pItem = 0;
- SwViewOption aUsrPref( *rSh.GetViewOptions() );
- sal_uInt16 nBackgroundDestination = aUsrPref.GetTblDest();
if(SFX_ITEM_SET == rSet.GetItemState(SID_BACKGRND_DESTINATION, false, &pItem))
{
- nBackgroundDestination = ((SfxUInt16Item*)pItem)->GetValue();
+ SwViewOption aUsrPref( *rSh.GetViewOptions() );
+ sal_uInt16 nBackgroundDestination = ((SfxUInt16Item*)pItem)->GetValue();
aUsrPref.SetTblDest((sal_uInt8)nBackgroundDestination);
SW_MOD()->ApplyUsrPref(aUsrPref, &rSh.GetView());
}