summaryrefslogtreecommitdiffstats
path: root/src/document-undo.cpp
diff options
context:
space:
mode:
authorMarc Jeanmougin <marc@jeanmougin.fr>2016-07-23 09:30:20 +0000
committerMarc Jeanmougin <marcjeanmougin@free.fr>2016-07-23 09:30:20 +0000
commit1dd869116719a20f503e05f3b01cddb8b0c97ed6 (patch)
tree11c2ac1c8b3b9bc3b2c1b1af58571f1b24176afa /src/document-undo.cpp
parentFixed null when selection contains more than one item (diff)
downloadinkscape-1dd869116719a20f503e05f3b01cddb8b0c97ed6.tar.gz
inkscape-1dd869116719a20f503e05f3b01cddb8b0c97ed6.zip
Fix auto palette when using extensions
(bzr r15019)
Diffstat (limited to 'src/document-undo.cpp')
-rw-r--r--src/document-undo.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/document-undo.cpp b/src/document-undo.cpp
index eb0ac7707..c27904ea8 100644
--- a/src/document-undo.cpp
+++ b/src/document-undo.cpp
@@ -196,6 +196,7 @@ void Inkscape::DocumentUndo::cancel(SPDocument *doc)
if (doc->priv->partial) {
sp_repr_undo_log (doc->priv->partial);
+ doc->emitReconstructionFinish();
sp_repr_free_log (doc->priv->partial);
doc->priv->partial = NULL;
}
@@ -222,6 +223,8 @@ static void perform_document_update(SPDocument &doc) {
doc.ensureUpToDate();
Inkscape::XML::Event *update_log=sp_repr_commit_undoable(doc.rdoc);
+ doc.emitReconstructionFinish();
+
if (update_log != NULL) {
g_warning("Document was modified while being updated after undo operation");
sp_repr_debug_print_log(update_log);
@@ -322,8 +325,10 @@ gboolean Inkscape::DocumentUndo::redo(SPDocument *doc)
doc->priv->sensitive = TRUE;
doc->priv->seeking = false;
- if (ret)
+ if (ret) {
INKSCAPE.external_change();
+ doc->emitReconstructionFinish();
+ }
return ret;
}