Ticket #2241: This Haunts Me.patch
| File This Haunts Me.patch, 1.4 KB (added by , 17 years ago) |
|---|
-
src/org/openstreetmap/josm/actions/mapmode/DrawAction.java
805 805 } 806 806 807 807 public void paint(Graphics g, MapView mv) { 808 if (!drawHelperLine ) return;808 if (!drawHelperLine || wayIsFinished) return; 809 809 810 810 // sanity checks 811 811 if (Main.map.mapView == null) return; … … 881 881 /* 882 882 * Check whether a connection will be made 883 883 */ 884 if (currentBaseNode != null ) {884 if (currentBaseNode != null && !wayIsFinished) { 885 885 if(alt) 886 886 rv += " " + tr("Start new way from last node."); 887 887 else 888 888 rv += " " + tr("Continue way from last node."); 889 889 } 890 890 891 Node n = mouseOnExistingNode; 891 892 /* 892 893 * Handle special case: Highlighted node == selected node => finish drawing 893 894 */ 894 Node n = mouseOnExistingNode;895 895 896 if(n != null && Main.ds.getSelectedNodes().contains(n)) { 896 rv = tr("Finish drawing."); 897 if(wayIsFinished) 898 rv = tr("Select node under cursor."); 899 else 900 rv = tr("Finish drawing."); 897 901 } 898 902 899 903 /*
