- Timestamp:
- 2009-02-27T08:55:07+01:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/mapmode/DrawAction.java
r1444 r1447 243 243 if(!Main.map.mapView.isDrawableLayer()) 244 244 return; 245 wayIsFinished = false; 245 246 computeHelperLine(); 246 247 addHighlighting(); … … 806 807 807 808 public void paint(Graphics g, MapView mv) { 808 if (!drawHelperLine ) return;809 if (!drawHelperLine || wayIsFinished) return; 809 810 810 811 // sanity checks … … 882 883 * Check whether a connection will be made 883 884 */ 884 if (currentBaseNode != null ) {885 if (currentBaseNode != null && !wayIsFinished) { 885 886 if(alt) 886 887 rv += " " + tr("Start new way from last node."); … … 888 889 rv += " " + tr("Continue way from last node."); 889 890 } 890 891 892 Node n = mouseOnExistingNode; 891 893 /* 892 894 * Handle special case: Highlighted node == selected node => finish drawing 893 895 */ 894 Node n = mouseOnExistingNode;896 895 897 if(n != null && Main.ds.getSelectedNodes().contains(n)) { 896 rv = tr("Finish drawing."); 898 if(wayIsFinished) 899 rv = tr("Select node under cursor."); 900 else 901 rv = tr("Finish drawing."); 897 902 } 898 903
Note:
See TracChangeset
for help on using the changeset viewer.