summaryrefslogtreecommitdiffstats
path: root/src/document-undo.cpp
diff options
context:
space:
mode:
authorAdrian Boguszewski <adrbogus1@student.pg.gda.pl>2016-08-03 14:56:48 +0000
committerAdrian Boguszewski <adrbogus1@student.pg.gda.pl>2016-08-03 14:56:48 +0000
commit2d71db83e3fe52505116fecf024f79a9777d4ee1 (patch)
tree07b5e7b87af9ea1ba6bedd8b39fd96b0a13944c7 /src/document-undo.cpp
parentRenamed some functions, fixed tests (diff)
parentRemoved unused includes, decreased compilation time. Once again (diff)
downloadinkscape-2d71db83e3fe52505116fecf024f79a9777d4ee1.tar.gz
inkscape-2d71db83e3fe52505116fecf024f79a9777d4ee1.zip
Merged trunk
(bzr r14954.1.29)
Diffstat (limited to 'src/document-undo.cpp')
-rw-r--r--src/document-undo.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/document-undo.cpp b/src/document-undo.cpp
index eb0ac7707..113d09d66 100644
--- a/src/document-undo.cpp
+++ b/src/document-undo.cpp
@@ -45,7 +45,6 @@
*/
#include <string>
-#include <cstring>
#include "xml/repr.h"
#include "document-private.h"
#include "inkscape.h"
@@ -196,6 +195,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 +222,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 +324,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;
}