Issue #1424 Removed coordinate truncate when adding vertex.
Former-commit-id:8e83a6ea6d
[formerlyccc37dc454
] [formerly351148804c
[formerly 5531ffd29021d7e0db627f2c59ad7ef6de71a896]] Former-commit-id:351148804c
Former-commit-id:61f80591bb
This commit is contained in:
parent
bf7960b5f9
commit
c4e044d7b9
1 changed files with 5 additions and 7 deletions
|
@ -80,14 +80,14 @@ public class WarngenUIManager extends InputAdapter {
|
||||||
|
|
||||||
private int movePointIndex = -1;
|
private int movePointIndex = -1;
|
||||||
|
|
||||||
private WarngenLayer warngenLayer;
|
private final WarngenLayer warngenLayer;
|
||||||
|
|
||||||
// Cursor
|
// Cursor
|
||||||
private Cursor movePolygon;
|
private final Cursor movePolygon;
|
||||||
|
|
||||||
private Cursor movePoint;
|
private final Cursor movePoint;
|
||||||
|
|
||||||
private Cursor arrow;
|
private final Cursor arrow;
|
||||||
|
|
||||||
/** The last mouse position - x */
|
/** The last mouse position - x */
|
||||||
private int lastMouseX;
|
private int lastMouseX;
|
||||||
|
@ -541,7 +541,6 @@ public class WarngenUIManager extends InputAdapter {
|
||||||
}
|
}
|
||||||
|
|
||||||
Coordinate c = new Coordinate(lastMouseX, lastMouseY);
|
Coordinate c = new Coordinate(lastMouseX, lastMouseY);
|
||||||
PolygonUtil.truncate(c, 2);
|
|
||||||
Polygon poly = warngenLayer.getPolygon();
|
Polygon poly = warngenLayer.getPolygon();
|
||||||
|
|
||||||
if (StormTrackUIManager.getCoordinateIndex(warngenLayer,
|
if (StormTrackUIManager.getCoordinateIndex(warngenLayer,
|
||||||
|
@ -572,7 +571,6 @@ public class WarngenUIManager extends InputAdapter {
|
||||||
|
|
||||||
Coordinate coLinearCoord = container.translateClick(
|
Coordinate coLinearCoord = container.translateClick(
|
||||||
coLinearPoint.getX(), coLinearPoint.getY());
|
coLinearPoint.getX(), coLinearPoint.getY());
|
||||||
PolygonUtil.truncate(coLinearCoord, 2);
|
|
||||||
Coordinate[] coords2 = new Coordinate[coords.length + 1];
|
Coordinate[] coords2 = new Coordinate[coords.length + 1];
|
||||||
int k = 0;
|
int k = 0;
|
||||||
for (k = 0; k < i; k++) {
|
for (k = 0; k < i; k++) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue