Changeset 13159 in josm for trunk/src/org
- Timestamp:
- 2017-11-25T02:42:41+01:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/MapStatus.java
r13154 r13159 13 13 import java.awt.EventQueue; 14 14 import java.awt.Font; 15 import java.awt.GraphicsEnvironment; 15 16 import java.awt.GridBagLayout; 16 17 import java.awt.MouseInfo; … … 1193 1194 @Override 1194 1195 public void zoomChanged() { 1195 PointerInfo pointerInfo = MouseInfo.getPointerInfo(); 1196 if (pointerInfo != null) { 1197 Point mp = pointerInfo.getLocation(); 1198 updateLatLonText(mp.x, mp.y); 1196 if (!GraphicsEnvironment.isHeadless()) { 1197 PointerInfo pointerInfo = MouseInfo.getPointerInfo(); 1198 if (pointerInfo != null) { 1199 Point mp = pointerInfo.getLocation(); 1200 updateLatLonText(mp.x, mp.y); 1201 } 1199 1202 } 1200 1203 }
Note:
See TracChangeset
for help on using the changeset viewer.