diff options
| author | Tavmjong Bah <tavmjong@free.fr> | 2019-04-05 08:57:38 +0000 |
|---|---|---|
| committer | Tavmjong Bah <tavmjong@free.fr> | 2019-04-05 08:57:38 +0000 |
| commit | 98d368ee1fbfce8a561479da078e97a7f5d7ccd4 (patch) | |
| tree | c2bf896c3bebb8766dec9fd1a0032ffd2ebc0824 /src/document-undo.cpp | |
| parent | Fix indentating. (diff) | |
| download | inkscape-98d368ee1fbfce8a561479da078e97a7f5d7ccd4.tar.gz inkscape-98d368ee1fbfce8a561479da078e97a7f5d7ccd4.zip | |
More cleanup of document.h.
Diffstat (limited to '')
| -rw-r--r-- | src/document-undo.cpp | 6 |
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(); |
