diff options
author | Alex Ivan <alexnivan@yahoo.com> | 2013-08-22 19:14:40 +0300 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2015-09-24 01:00:13 +0200 |
commit | 1ecd390f9baa006b1bb07a3f8d463b7ced381d58 (patch) | |
tree | be25dbd5fe0781493d8c94a2ed4a75c7bdeef0b3 | |
parent | 987ca37038ec8368a3ee05865d1e9216acc527d8 (diff) |
Proper undo for row/column insertion/deletion
Change-Id: If0de2939334ecf10d96e26d5a5c3d99dfa3deba2
-rw-r--r-- | sw/source/core/undo/untbl.cxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sw/source/core/undo/untbl.cxx b/sw/source/core/undo/untbl.cxx index fc49694e14cb..fb3f690dcdc5 100644 --- a/sw/source/core/undo/untbl.cxx +++ b/sw/source/core/undo/untbl.cxx @@ -1805,6 +1805,10 @@ void SwUndoTableNdsChg::UndoImpl(::sw::UndoRedoContext & rContext) if( IsDelBox() ) nSttNode = pTableNd->GetIndex(); ClearFEShellTabCols(); + + SwTableFormat::AssignFormatParents( (SwTableFormat*)pTableNd->GetTable().GetFrameFormat()->GetRegisteredIn(), + pTableNd->GetTable() ); + CHECK_TABLE( pTableNd->GetTable() ) } @@ -1917,6 +1921,10 @@ void SwUndoTableNdsChg::RedoImpl(::sw::UndoRedoContext & rContext) ; } ClearFEShellTabCols(); + + SwTableFormat::AssignFormatParents( (SwTableFormat*)pTableNd->GetTable().GetFrameFormat()->GetRegisteredIn(), + pTableNd->GetTable() ); + CHECK_TABLE( pTableNd->GetTable() ) } |