Changeset 27760 in osm for applications/editors/josm/plugins/print/src
- Timestamp:
- 2012-02-14T21:43:28+01:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/print/src/org/openstreetmap/josm/plugins/print/PrintPlugin.java
r27282 r27760 125 125 */ 126 126 public static void adjustPrefs() { 127 if (! 127 if (!Main.pref.getBoolean("print.saved-prefs", false)) { 128 128 Main.pref.put("print.saved-prefs", true); 129 129 adjustPref("draw.data.downloaded_area", false); … … 145 145 */ 146 146 protected static void adjustPref(String key, int value) { 147 if ( Main.pref.hasKey(key)) {147 if (!Main.pref.get(key).isEmpty()) { 148 148 Main.pref.put("print.saved-prefs."+key, Main.pref.get(key)); 149 149 } … … 160 160 */ 161 161 protected static void adjustPref(String key, boolean value) { 162 if ( Main.pref.hasKey(key)) {162 if (!Main.pref.get(key).isEmpty()) { 163 163 Main.pref.put("print.saved-prefs."+key, Main.pref.get(key)); 164 164 } … … 175 175 */ 176 176 protected static void adjustPref(String key, String value) { 177 if ( Main.pref.hasKey(key)) {177 if (!Main.pref.get(key).isEmpty()) { 178 178 Main.pref.put("print.saved-prefs."+key, Main.pref.get(key)); 179 179 }
Note:
See TracChangeset
for help on using the changeset viewer.