tdf#134913 set table width after setting columns
so "relative" mode sticks regardless of any rounding issues triggering
the table out of relative mode.
Change-Id: If0abbf2ef75feb6fc4a408966c2a3c350589023f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100161
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
diff --git a/sw/source/uibase/shells/tabsh.cxx b/sw/source/uibase/shells/tabsh.cxx
index cd38b92..3f1fca3 100644
--- a/sw/source/uibase/shells/tabsh.cxx
+++ b/sw/source/uibase/shells/tabsh.cxx
@@ -422,9 +422,6 @@ void ItemSetToTableParam( const SfxItemSet& rSet,
if( SfxItemState::SET == rSet.GetItemState( *pIds, false, &pItem))
aSet.Put( *pItem );
if( aSet.Count() )
rSh.SetTableAttr( aSet );
if(bTabCols)
{
rSh.GetTabCols( aTabCols );
@@ -432,6 +429,9 @@ void ItemSetToTableParam( const SfxItemSet& rSet,
rSh.SetTabCols( aTabCols, bSingleLine );
}
if( aSet.Count() )
rSh.SetTableAttr( aSet );
rSh.EndUndo( SwUndoId::TABLE_ATTR );
rSh.EndAllAction();
}