Ignore:
Timestamp:
2015-10-19T19:47:41+02:00 (9 years ago)
Author:
simon04
Message:

JOSM/utilsplugin2: remember location of LatLonDialog - fixes #josm8070

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/utilsplugin2/src/org/openstreetmap/josm/plugins/utilsplugin2/latlon/LatLonDialog.java

    r30737 r31651  
    274274    @Override
    275275    public void setVisible(boolean visible) {
     276        final String preferenceKey = getClass().getName() + ".geometry";
    276277        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);
    278284        }
    279285        super.setVisible(visible);
Note: See TracChangeset for help on using the changeset viewer.