summaryrefslogtreecommitdiffstats
path: root/src/document-undo.cpp
diff options
context:
space:
mode:
authorTavmjong Bah <tavmjong@free.fr>2019-04-05 08:57:38 +0000
committerTavmjong Bah <tavmjong@free.fr>2019-04-05 08:57:38 +0000
commit98d368ee1fbfce8a561479da078e97a7f5d7ccd4 (patch)
treec2bf896c3bebb8766dec9fd1a0032ffd2ebc0824 /src/document-undo.cpp
parentFix indentating. (diff)
downloadinkscape-98d368ee1fbfce8a561479da078e97a7f5d7ccd4.tar.gz
inkscape-98d368ee1fbfce8a561479da078e97a7f5d7ccd4.zip
More cleanup of document.h.
Diffstat (limited to 'src/document-undo.cpp')
-rw-r--r--src/document-undo.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/document-undo.cpp b/src/document-undo.cpp
index 8284dac55..de526a60c 100644
--- a/src/document-undo.cpp
+++ b/src/document-undo.cpp
@@ -189,7 +189,8 @@ void Inkscape::DocumentUndo::cancel(SPDocument *doc)
sp_repr_begin_transaction (doc->rdoc);
}
-static void finish_incomplete_transaction(SPDocument &doc) {
+// Member function for friend access to SPDocument privates.
+void Inkscape::DocumentUndo::finish_incomplete_transaction(SPDocument &doc) {
Inkscape::XML::Event *log=sp_repr_commit_undoable(doc.rdoc);
if (log || doc.partial) {
g_warning ("Incomplete undo transaction:");
@@ -202,7 +203,8 @@ static void finish_incomplete_transaction(SPDocument &doc) {
}
}
-static void perform_document_update(SPDocument &doc) {
+// Member function for friend access to SPDocument privates.
+void Inkscape::DocumentUndo::perform_document_update(SPDocument &doc) {
sp_repr_begin_transaction(doc.rdoc);
doc.ensureUpToDate();