Ticket #18769: 18769.patch

File 18769.patch, 1.1 KB (added by GerdP, 5 years ago)
  • src/org/openstreetmap/josm/gui/MapFrame.java

     
    342342        MainApplication.getLayerManager().removeLayerChangeListener(this);
    343343        MainApplication.getLayerManager().removeActiveLayerChangeListener(this);
    344344        MainApplication.getMenu().modeMenu.removeAll();
     345        rememberToggleDialogWidth();
    345346        dialogsPanel.destroy();
    346347        Config.getPref().removePreferenceChangeListener(sidetoolbarPreferencesChangedListener);
    347348        for (int i = 0; i < toolBarActions.getComponentCount(); ++i) {
     
    738739     */
    739740    public void rememberToggleDialogWidth() {
    740741        if (dialogsPanel.isVisible()) {
    741             TOGGLE_DIALOGS_WIDTH.put(splitPane.getWidth() - splitPane.getDividerLocation());
     742            TOGGLE_DIALOGS_WIDTH.put(splitPane.getWidth() - splitPane.getDividerLocation() - splitPane.getDividerSize() - 1);
    742743        }
    743744    }
    744745