Ticket #18769: 18769.patch
File 18769.patch, 1.1 KB (added by , 5 years ago) |
---|
-
src/org/openstreetmap/josm/gui/MapFrame.java
342 342 MainApplication.getLayerManager().removeLayerChangeListener(this); 343 343 MainApplication.getLayerManager().removeActiveLayerChangeListener(this); 344 344 MainApplication.getMenu().modeMenu.removeAll(); 345 rememberToggleDialogWidth(); 345 346 dialogsPanel.destroy(); 346 347 Config.getPref().removePreferenceChangeListener(sidetoolbarPreferencesChangedListener); 347 348 for (int i = 0; i < toolBarActions.getComponentCount(); ++i) { … … 738 739 */ 739 740 public void rememberToggleDialogWidth() { 740 741 if (dialogsPanel.isVisible()) { 741 TOGGLE_DIALOGS_WIDTH.put(splitPane.getWidth() - splitPane.getDividerLocation() );742 TOGGLE_DIALOGS_WIDTH.put(splitPane.getWidth() - splitPane.getDividerLocation() - splitPane.getDividerSize() - 1); 742 743 } 743 744 } 744 745