Omaha #3430 Error returned when MB3 clicking off the map with a snapping tool in edit mode
Change-Id: Iba81f6dc58b1223252711296b66a88a8afb02cdd Former-commit-id:de149c4a4f
[formerlyde149c4a4f
[formerly d81e1ac43cbf10b0cd6f475e41fc242ab3c6a3c7]] Former-commit-id:cf2a2d47b9
Former-commit-id:29bd1467dc
This commit is contained in:
parent
0aa7bb4c53
commit
5d22073714
1 changed files with 8 additions and 2 deletions
|
@ -73,9 +73,11 @@ import com.vividsolutions.jts.geom.LineString;
|
|||
* Sep 03, 2013 2310 bsteffen Move MouseHandler from ShearAction to
|
||||
* ShearLayer.
|
||||
* Mar 3, 2014 2804 mschenke Set back up clipping pane
|
||||
* Jul 28, 2014 3430 mapeters Updated the 'handleMouseUp' function
|
||||
* Jul 28, 2014 3430 mapeters Updated the 'handleMouseUp' and
|
||||
* 'handleMouseDownMove' functions
|
||||
* to prevent errors when MB3 clicking off
|
||||
* the map with tool in editable mode.
|
||||
* the map or MB1 dragging off the map with
|
||||
* tool in editable mode.
|
||||
*
|
||||
* </pre>
|
||||
*
|
||||
|
@ -613,6 +615,10 @@ public class ShearLayer extends
|
|||
Coordinate c = container.translateClick(lastMouseX, lastMouseY);
|
||||
Coordinate c2 = container.translateClick(x, y);
|
||||
|
||||
if (c == null || c2 == null) {
|
||||
return true;
|
||||
}
|
||||
|
||||
Coordinate delta = new Coordinate(c2.x - c.x, c2.y - c.y);
|
||||
|
||||
if (this.mode == Mode.MOVE_LINE) {
|
||||
|
|
Loading…
Add table
Reference in a new issue