| 1650 | setProjectChanged(true); |
| 1651 | } |
| 1652 | void CartesianPlot::removeCoordinateSystem(int index) { |
| 1653 | if (index < 0 || index > coordinateSystemCount()) { |
| 1654 | DEBUG(Q_FUNC_INFO << ", index " << index << " out of range") |
| 1655 | return; |
| 1656 | } |
| 1657 | |
| 1658 | // TODO: deleting cSystem? |
| 1659 | m_coordinateSystems.remove(index); |
| 1660 | if (project()) |
| 1661 | setProjectChanged(true); |
| 1662 | } |
| 1663 | |
| 1664 | STD_SETTER_CMD_IMPL_S(CartesianPlot, SetDefaultCoordinateSystemIndex, int, defaultCoordinateSystemIndex) |
| 1665 | int CartesianPlot::defaultCoordinateSystemIndex() const { |