Changeset 31651 in osm for applications/editors/josm/plugins
- Timestamp:
- 2015-10-19T19:47:41+02:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/utilsplugin2/src/org/openstreetmap/josm/plugins/utilsplugin2/latlon/LatLonDialog.java
r30737 r31651 274 274 @Override 275 275 public void setVisible(boolean visible) { 276 final String preferenceKey = getClass().getName() + ".geometry"; 276 277 if (visible) { 277 WindowGeometry.centerInWindow(Main.parent, getSize()).applySafe(this); 278 new WindowGeometry( 279 preferenceKey, 280 WindowGeometry.centerInWindow(getParent(), getSize()) 281 ).applySafe(this); 282 } else { 283 new WindowGeometry(this).remember(preferenceKey); 278 284 } 279 285 super.setVisible(visible);
Note:
See TracChangeset
for help on using the changeset viewer.