summaryrefslogtreecommitdiffstats
path: root/src/inkscape-application.cpp
diff options
context:
space:
mode:
authorTavmjong Bah <tavmjong@free.fr>2019-04-06 18:54:25 +0000
committerTavmjong Bah <tavmjong@free.fr>2019-04-06 18:54:25 +0000
commit87eb273ceca7e4212a4bfbf2e04b616bac73a701 (patch)
tree5974d5938b0a71bf48a5486c5d669c4767aa2341 /src/inkscape-application.cpp
parentCMake: Fix module FindDoubleConversion.cmake (diff)
downloadinkscape-87eb273ceca7e4212a4bfbf2e04b616bac73a701.tar.gz
inkscape-87eb273ceca7e4212a4bfbf2e04b616bac73a701.zip
More document.h cleanup.
Diffstat (limited to 'src/inkscape-application.cpp')
-rw-r--r--src/inkscape-application.cpp6
1 files changed, 3 insertions, 3 deletions
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<Gio::File>& 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<Gtk::Application>::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.