Fix cancel

This commit is contained in:
PavelRatushny 2017-08-25 18:55:40 +03:00
parent 7aadcc8f75
commit a94e6981d3

View file

@ -881,6 +881,7 @@ public class MeasurementToolFragment extends Fragment {
private void cancelAddPointBeforeOrAfterMode() {
switchAddPointBeforeAfterMode(false);
editingCtx.splitSegments(editingCtx.getBeforePoints().size() + editingCtx.getAfterPoints().size());
editingCtx.setSelectedPointPosition(-1);
MeasurementToolLayer measurementToolLayer = getMeasurementLayer();
if (measurementToolLayer != null) {