Commit fa081e2a authored by C. Boemann's avatar C. Boemann

Fix that inserting a table would create an extra spurious undocommand during layout

parent bec1989b
......@@ -1012,6 +1012,10 @@ void KoTextEditor::insertTable(int rows, int columns)
QTextTable *table = d->caret.insertTable(rows, columns, tableFormat);
// Get (and thus create) columnandrowstyle manager so it becomes part of undo
// and not something that happens uncontrollably during layout
KoTableColumnAndRowStyleManager::getManager(table);
// 'Hide' the block before the table
QTextBlockFormat blockFormat = currentBlock.blockFormat();
QTextCursor cursor(currentBlock);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment