Delete comments
This commit is contained in:
parent
154dc2b1c4
commit
ac44fcd023
1 changed files with 3 additions and 3 deletions
|
@ -861,9 +861,9 @@ public class MeasurementToolFragment extends Fragment {
|
|||
private void addPointBeforeAfter() {
|
||||
MeasurementToolLayer measurementLayer = getMeasurementLayer();
|
||||
if (measurementLayer != null) {
|
||||
int selectedPoint = editingCtx.getSelectedPointPosition(); // after = 1; before = 1;
|
||||
int pointsCount = editingCtx.getPointsCount(); // after = 2; before = 1;
|
||||
if (addCenterPoint()) { // select second point
|
||||
int selectedPoint = editingCtx.getSelectedPointPosition();
|
||||
int pointsCount = editingCtx.getPointsCount();
|
||||
if (addCenterPoint()) {
|
||||
if (selectedPoint == pointsCount) {
|
||||
editingCtx.splitSegments(editingCtx.getPointsCount() - 1);
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue