Merge "Omaha #3430 Error returned when MB3 clicking off the map with a snapping tool in edit mode" into omaha_14.4.1

Former-commit-id: 1858a9b22e9b34c5fbe167ab8636c1a03e820a5e
This commit is contained in:
Nate Jensen 2014-08-04 13:57:11 -05:00 committed by Gerrit Code Review
commit 9cfc0e27d5

View file

@ -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) {