Revision: 4578 http://sourceforge.net/p/jump-pilot/code/4578 Author: ma15569 Date: 2015-12-07 07:02:08 +0000 (Mon, 07 Dec 2015) Log Message: ----------- Prevent cutFeatureTool to delete points and multipoints
Modified Paths: -------------- core/trunk/src/org/openjump/core/ui/plugin/edittoolbox/cursortools/CutFeaturesTool.java Modified: core/trunk/src/org/openjump/core/ui/plugin/edittoolbox/cursortools/CutFeaturesTool.java =================================================================== --- core/trunk/src/org/openjump/core/ui/plugin/edittoolbox/cursortools/CutFeaturesTool.java 2015-12-06 23:12:20 UTC (rev 4577) +++ core/trunk/src/org/openjump/core/ui/plugin/edittoolbox/cursortools/CutFeaturesTool.java 2015-12-07 07:02:08 UTC (rev 4578) @@ -131,6 +131,8 @@ featureIntersect.setGeometry(geom); edtr.createFeature(featureIntersect); } + } else if (this.geomSelected instanceof Point || this.geomSelected instanceof MultiPoint||this.geomSelected instanceof GeometryCollection ) { + // Points or GeometryCollections } else { return; } ------------------------------------------------------------------------------ Go from Idea to Many App Stores Faster with Intel(R) XDK Give your users amazing mobile app experiences with Intel(R) XDK. Use one codebase in this all-in-one HTML5 development environment. Design, debug & build mobile apps & 2D/3D high-impact games for multiple OSs. http://pubads.g.doubleclick.net/gampad/clk?id=254741911&iu=/4140 _______________________________________________ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel