MCPcopy Create free account
hub / github.com/OpenOrienteering/mapper / resetEditedObjects

Method resetEditedObjects

src/tools/tool_base.cpp:600–610  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

598
599
600void MapEditorToolBase::resetEditedObjects()
601{
602 Q_ASSERT(editingInProgress());
603
604 for (auto& edited_item : edited_items)
605 {
606 auto object = edited_item.active_object;
607 object->copyFrom(*edited_item.duplicate);
608 object->setMap(nullptr); // This is to keep the renderables out of the normal map.
609 }
610}
611
612
613void MapEditorToolBase::reapplyConstraintHelpers()

Callers

nothing calls this directly

Calls 2

copyFromMethod · 0.45
setMapMethod · 0.45

Tested by

no test coverage detected