Changeset 8069 in josm for trunk


Ignore:
Timestamp:
2015-02-15T20:19:38+01:00 (5 years ago)
Author:
Don-vip
Message:

fix #11074 - Cannot collapse geotagged images dialog

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/layer/geoimage/ImageViewerDialog.java

    r7912 r8069  
    7474        super(tr("Geotagged Images"), "geoimage", tr("Display geotagged images"), Shortcut.registerShortcut("tools:geotagged",
    7575        tr("Tool: {0}", tr("Display geotagged images")), KeyEvent.VK_Y, Shortcut.DIRECT), 200);
    76 
     76        build();
     77        MapView.addLayerChangeListener(this);
     78    }
     79
     80    protected void build() {
    7781        JPanel content = new JPanel();
    7882        content.setLayout(new BorderLayout());
     
    184188        content.add(bottomPane, BorderLayout.SOUTH);
    185189
    186         add(content, BorderLayout.CENTER);
    187 
    188         MapView.addLayerChangeListener(this);
     190        createLayout(content, false, null);
    189191    }
    190192
Note: See TracChangeset for help on using the changeset viewer.