summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sw/source/core/docnode/ndtbl.cxx9
1 files changed, 8 insertions, 1 deletions
diff --git a/sw/source/core/docnode/ndtbl.cxx b/sw/source/core/docnode/ndtbl.cxx
index 17a467e7ca4f..20618a929a67 100644
--- a/sw/source/core/docnode/ndtbl.cxx
+++ b/sw/source/core/docnode/ndtbl.cxx
@@ -2003,9 +2003,13 @@ bool SwDoc::DeleteRowCol( const SwSelBoxes& rBoxes, bool bColumn )
pTableNd->DelFrms();
getIDocumentContentOperations().DeleteSection( pTableNd );
}
+
+ SwTableFormat::AssignFormatParents( (SwTableFormat*)rTable.GetFrameFormat()->GetRegisteredIn(),
+ rTable );
+
getIDocumentState().SetModified();
getIDocumentFieldsAccess().SetFieldsDirty( true, NULL, 0 );
- return true;
+ return sal_True;
}
SwUndoTableNdsChg* pUndo = 0;
@@ -2034,6 +2038,9 @@ bool SwDoc::DeleteRowCol( const SwSelBoxes& rBoxes, bool bColumn )
bRet = rTable.DeleteSel( this, aSelBoxes, 0, pUndo, true, true );
if (bRet)
{
+ SwTableFormat::AssignFormatParents( (SwTableFormat*)rTable.GetFrameFormat()->GetRegisteredIn(),
+ rTable );
+
getIDocumentState().SetModified();
getIDocumentFieldsAccess().SetFieldsDirty( true, NULL, 0 );
}