From 580e31c8aac239128417976bce5a215a77091351 Mon Sep 17 00:00:00 2001 From: huxingyi Date: Thu, 16 Apr 2020 18:48:41 +0930 Subject: [PATCH] Fix document settings been overwritten by importing [skip ci] --- src/document.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/document.cpp b/src/document.cpp index 4a171ac7..010ee6b6 100644 --- a/src/document.cpp +++ b/src/document.cpp @@ -1467,7 +1467,8 @@ void Document::addFromSnapshot(const Snapshot &snapshot, enum SnapshotSource sou { bool isOriginChanged = false; bool isRigTypeChanged = false; - if (SnapshotSource::Paste != source) { + if (SnapshotSource::Paste != source && + SnapshotSource::Import != source) { this->polyCount = PolyCountFromString(valueOfKeyInMapOrEmpty(snapshot.canvas, "polyCount").toUtf8().constData()); const auto &originXit = snapshot.canvas.find("originX"); const auto &originYit = snapshot.canvas.find("originY");