[fix] may now create and drag a point in one click.
This commit is contained in:
parent
ef3792d9cb
commit
8d439db6e0
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user