src/parser.cpp

changeset 26
3a9e761e4faa
parent 24
1a0faaaceb84
child 33
4c41bfe2ec6e
equal deleted inserted replaced
25:6de5ac1fb471 26:3a9e761e4faa
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)

mercurial