Changeset 25379 in osm for applications
- Timestamp:
- 2011-02-20T21:20:35+01:00 (14 years ago)
- Location:
- applications/editors/josm/plugins/contourmerge
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/contourmerge/build.xml
r25199 r25379 27 27 <project name="contourmerge" default="dist" basedir="."> 28 28 29 <property name="commit.message" value=" Updating to JOSM 3210" />29 <property name="commit.message" value="Fixed: unexpected intersections after drag-and-drop" /> 30 30 <property name="plugin.main.version" value="3835" /> 31 31 … … 74 74 <copy todir="${plugin.build.dir}/images"> 75 75 <fileset dir="images"> 76 < exclude name="*.svg" />76 <include name="*.png" /> 77 77 </fileset> 78 78 </copy> -
applications/editors/josm/plugins/contourmerge/src/org/openstreetmap/josm/plugins/contourmerge/ContourMergeModel.java
r24969 r25379 398 398 List<Node> targetNodes = dropTarget.getNodes(); 399 399 if (! areDirectionAligned(dragSource, dropTarget)) { 400 logger.info("not direction aligned !"); 400 401 Collections.reverse(targetNodes); 401 402 } … … 421 422 * {@code n2} are "direction aligned". Their direction is aligned, if the two lines 422 423 * between the two start nodes and the two end nodes of {@code n1} and code {@code n2} 423 * respectively, do not inter esect.</p>424 * respectively, do not intersect.</p> 424 425 * 425 426 * @param n1 the first list of nodes … … 451 452 if (dragSource == null) return false; 452 453 if (dropTarget == null) return false; 453 return areDirectionAligned(dragSource.get Way().getNodes(), dropTarget.getWay().getNodes());454 return areDirectionAligned(dragSource.getNodes(), dropTarget.getNodes()); 454 455 } 455 456 -
applications/editors/josm/plugins/contourmerge/src/org/openstreetmap/josm/plugins/contourmerge/ContourMergeView.java
r24969 r25379 294 294 /* 295 295 * paint the temporary dragged way slice, unless the mouse is currently over a potential 296 * drop target 296 297 */ 297 298 Path2D polyline = project(mv, dragSource, model.getDragOffset()); … … 305 306 * the mouse is over a suitable drop target. Paint only 306 307 * two helper lines from the drag source to the drop target. The drop target 307 * is highlighted .308 * is highlighted elsewhere. 308 309 */ 309 310 paintHelperLinesFromDragSourceToDropTarget(g,mv);
Note:
See TracChangeset
for help on using the changeset viewer.