From 87eb273ceca7e4212a4bfbf2e04b616bac73a701 Mon Sep 17 00:00:00 2001 From: Tavmjong Bah Date: Sat, 6 Apr 2019 20:54:25 +0200 Subject: More document.h cleanup. --- src/inkscape-application.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/inkscape-application.cpp') diff --git a/src/inkscape-application.cpp b/src/inkscape-application.cpp index 7ed49179b..1ba4cd0b6 100644 --- a/src/inkscape-application.cpp +++ b/src/inkscape-application.cpp @@ -117,7 +117,7 @@ InkscapeApplication::document_open(const Glib::RefPtr& file) SPDocument *document = ink_file_open(file, cancelled); if (document) { - document->virgin = false; // Prevents replacing document in same window during file open. + document->setVirgin(false); // Prevents replacing document in same window during file open. document_add (document); } else { @@ -204,7 +204,7 @@ InkscapeApplication::document_revert(SPDocument* document) } // Allow overwriting current document. - document->virgin = true; + document->setVirgin(true); auto it = _documents.find(document); if (it != _documents.end()) { @@ -638,7 +638,7 @@ ConcreteInkscapeApplication::create_window(const Glib::RefPtr< // TODO Remove this code... handle document replacement elsewhere. SPDocument* old_document = _active_document; - if (replace_empty && old_document && old_document->virgin) { + if (replace_empty && old_document && old_document->getVirgin()) { // virgin == true => an empty document (template). // Is there a better place for this? It requires GUI. -- cgit v1.2.3