summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Ivan <alexnivan@yahoo.com>2013-08-22 19:14:40 +0300
committerAlex Ivan <alexnivan@yahoo.com>2013-08-22 19:14:40 +0300
commit17d00196dbcaa8a98f65f6b3c1c33e507ddbf210 (patch)
tree7253c2000eb9242eae7eb5e5c0a89486e647a37b
parent609527032d6ebc6df15a7082a0bbed681f924a47 (diff)
Proper undo for row/column insertion/deletion
Change-Id: If0de2939334ecf10d96e26d5a5c3d99dfa3deba2
-rw-r--r--sw/source/core/undo/untbl.cxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/sw/source/core/undo/untbl.cxx b/sw/source/core/undo/untbl.cxx
index 9a89ab1a67ab..8181640e4585 100644
--- a/sw/source/core/undo/untbl.cxx
+++ b/sw/source/core/undo/untbl.cxx
@@ -1792,6 +1792,10 @@ void SwUndoTblNdsChg::UndoImpl(::sw::UndoRedoContext & rContext)
if( IsDelBox() )
nSttNode = pTblNd->GetIndex();
ClearFEShellTabCols();
+
+ SwTableFmt::AssignFormatParents( (SwTableFmt*)pTblNd->GetTable().GetFrmFmt()->GetRegisteredIn(),
+ pTblNd->GetTable() );
+
CHECK_TABLE( pTblNd->GetTable() )
}
@@ -1904,6 +1908,10 @@ void SwUndoTblNdsChg::RedoImpl(::sw::UndoRedoContext & rContext)
;
}
ClearFEShellTabCols();
+
+ SwTableFmt::AssignFormatParents( (SwTableFmt*)pTblNd->GetTable().GetFrmFmt()->GetRegisteredIn(),
+ pTblNd->GetTable() );
+
CHECK_TABLE( pTblNd->GetTable() )
}