| 181 | } |
| 182 | |
| 183 | void moveSelectionToLayer(const cmd::ArgumentList& args) |
| 184 | { |
| 185 | if (args.size() != 1) |
| 186 | { |
| 187 | rError() << "Usage: " << COMMAND_MOVETOLAYER << " <LayerID> " << std::endl; |
| 188 | return; |
| 189 | } |
| 190 | |
| 191 | DoWithMapLayerManager([&](ILayerManager& manager) |
| 192 | { |
| 193 | manager.moveSelectionToLayer(args[0].getInt()); |
| 194 | GlobalMapModule().setModified(true); |
| 195 | }); |
| 196 | } |
| 197 | |
| 198 | void removeSelectionFromLayer(const cmd::ArgumentList& args) |
| 199 | { |
nothing calls this directly
no test coverage detected