| 115 | } |
| 116 | |
| 117 | PathObject* importPath(Map& map, const Symbol& symbol, MapCoordVector coords) |
| 118 | { |
| 119 | if (coords.empty()) |
| 120 | return nullptr; |
| 121 | |
| 122 | if (coords.size() == 1) |
| 123 | coords.push_back(coords.front()); |
| 124 | |
| 125 | auto* path = new PathObject(&symbol, std::move(coords)); |
| 126 | map.addObject(path); |
| 127 | map.addObjectToSelection(path, false); |
| 128 | return path; |
| 129 | } |
| 130 | |
| 131 | PointObject* importPoint(Map& map, const Symbol& symbol, const MapCoordF& position, const QString& name) |
| 132 | { |
no test coverage detected