254 { |
254 { |
255 invertNext = true; |
255 invertNext = true; |
256 continue; |
256 continue; |
257 } |
257 } |
258 std::unique_ptr<linetypes::Object> object = parseFromString(line); |
258 std::unique_ptr<linetypes::Object> object = parseFromString(line); |
|
259 auto id = editor.append(std::move(object)); |
259 if (invertNext) |
260 if (invertNext) |
260 { |
261 { |
261 editor.setObjectProperty(object.get(), linetypes::Property::IsInverted, true); |
262 editor.invertObject(id); |
262 } |
263 } |
263 editor.append(std::move(object)); |
|
264 invertNext = false; |
264 invertNext = false; |
265 } |
265 } |
266 } |
266 } |
267 |
267 |
268 static Color colorFromString(const QString& colorString) |
268 static Color colorFromString(const QString& colorString) |