src/parser.cpp

changeset 26
3a9e761e4faa
parent 24
1a0faaaceb84
child 33
4c41bfe2ec6e
--- a/src/parser.cpp	Sun Jan 19 14:25:57 2020 +0200
+++ b/src/parser.cpp	Wed Jan 22 00:23:29 2020 +0200
@@ -256,11 +256,11 @@
 			continue;
 		}
 		std::unique_ptr<linetypes::Object> object = parseFromString(line);
+		auto id = editor.append(std::move(object));
 		if (invertNext)
 		{
-			editor.setObjectProperty(object.get(), linetypes::Property::IsInverted, true);
+			editor.invertObject(id);
 		}
-		editor.append(std::move(object));
 		invertNext = false;
 	}
 }

mercurial