summaryrefslogtreecommitdiffstats
path: root/src/document-undo.cpp
diff options
context:
space:
mode:
authorJabiertxof <jtx@jtx>2017-01-14 21:03:06 +0000
committerJabiertxof <jtx@jtx>2017-01-14 21:03:06 +0000
commit7e4cdbfd55295e76671ade0fd5211d2c3b3c4208 (patch)
tree53612c46edc3e6e007922e3df862c568bced9303 /src/document-undo.cpp
parentbase of effect (diff)
parent[Bug #1651815] share/examples: rescale svgs to 96 dpi. (diff)
downloadinkscape-7e4cdbfd55295e76671ade0fd5211d2c3b3c4208.tar.gz
inkscape-7e4cdbfd55295e76671ade0fd5211d2c3b3c4208.zip
fixing crash on erase
(bzr r15392.1.3)
Diffstat (limited to 'src/document-undo.cpp')
-rw-r--r--src/document-undo.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/document-undo.cpp b/src/document-undo.cpp
index 113d09d66..9c534dd58 100644
--- a/src/document-undo.cpp
+++ b/src/document-undo.cpp
@@ -160,7 +160,6 @@ void Inkscape::DocumentUndo::maybeDone(SPDocument *doc, const gchar *key, const
sp_repr_begin_transaction (doc->rdoc);
return;
}
-
if (key && !doc->actionkey.empty() && (doc->actionkey == key) && !doc->priv->undo.empty()) {
(doc->priv->undo.back())->event =
sp_repr_coalesce_log ((doc->priv->undo.back())->event, log);
@@ -170,7 +169,6 @@ void Inkscape::DocumentUndo::maybeDone(SPDocument *doc, const gchar *key, const
doc->priv->history_size++;
doc->priv->undoStackObservers.notifyUndoCommitEvent(event);
}
-
if ( key ) {
doc->actionkey = key;
} else {
@@ -181,7 +179,6 @@ void Inkscape::DocumentUndo::maybeDone(SPDocument *doc, const gchar *key, const
doc->setModifiedSinceSave();
sp_repr_begin_transaction (doc->rdoc);
-
doc->priv->commit_signal.emit();
}