Changeset 11652 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2017-03-03T01:40:29+01:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/ImageryAdjustAction.java
r11186 r11652 70 70 old = layer.getDisplaySettings().getDisplacement(); 71 71 addListeners(); 72 offsetDialog = new ImageryOffsetDialog(); 72 showOffsetDialog(new ImageryOffsetDialog()); 73 } 74 75 private static void showOffsetDialog(ImageryOffsetDialog dlg) { 76 offsetDialog = dlg; 73 77 offsetDialog.setVisible(true); 78 } 79 80 private static void hideOffsetDialog() { 81 offsetDialog.setVisible(false); 82 offsetDialog = null; 74 83 } 75 84 … … 91 100 layer.getDisplaySettings().setDisplacement(old); 92 101 } 93 offsetDialog.setVisible(false);102 hideOffsetDialog(); 94 103 // do not restore old mode here - this is called when the new mode is already known. 95 offsetDialog = null;96 104 } 97 105 removeListeners();
Note:
See TracChangeset
for help on using the changeset viewer.