- Timestamp:
- 2008-04-21T17:28:14+02:00 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/MapStatus.java
r617 r619 144 144 continue; 145 145 146 OsmPrimitive osmNearest = null;147 // Set the text label in the bottom status bar148 osmNearest = mv.getNearest(ms.mousePos);149 if (osmNearest != null) {150 NameVisitor visitor = new NameVisitor();151 osmNearest.visit(visitor);152 nameText.setText(visitor.name);153 } else154 nameText.setText("(no object)");155 156 146 // This try/catch is a hack to stop the flooding bug reports about this. 157 147 // The exception needed to handle with in the first place, means that this … … 159 149 // the data. 160 150 try { 151 OsmPrimitive osmNearest = null; 152 // Set the text label in the bottom status bar 153 osmNearest = mv.getNearest(ms.mousePos); 154 if (osmNearest != null) { 155 NameVisitor visitor = new NameVisitor(); 156 osmNearest.visit(visitor); 157 nameText.setText(visitor.name); 158 } else 159 nameText.setText("(no object)"); 160 161 161 // Popup Information 162 162 if ((ms.modifiers & MouseEvent.BUTTON2_DOWN_MASK) != 0 ) {
Note:
See TracChangeset
for help on using the changeset viewer.