--- 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; } }