[fix] may now create and drag a point in one click.

This commit is contained in:
Daniel_M_Williams 2018-09-03 21:56:37 -04:00
parent ef3792d9cb
commit 8d439db6e0

View File

@ -408,18 +408,8 @@ public class FreeformFinSetConfig extends FinSetConfig {
if (segmentIndex >= 0) {
Point2D.Double point = getCoordinates(event);
finset.addPoint(segmentIndex, point);
try {
finset.setPoint(dragIndex, point.x, point.y);
dragIndex = segmentIndex;
updateFields();
return;
} catch (IllegalFinPointException ignore) {
// no-op
} catch (ArrayIndexOutOfBoundsException ex) {
log.error("bad index while editing fin points!!", ex);
}
dragIndex = segmentIndex;
updateFields();
return;
}