Changeset 33185 in osm for applications/editors/josm/plugins/OpeningHoursEditor
- Timestamp:
- 2017-03-12T15:45:39+01:00 (8 years ago)
- Location:
- applications/editors/josm/plugins/OpeningHoursEditor/src/org/openstreetmap/josm/plugins/ohe
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/OpeningHoursEditor/src/org/openstreetmap/josm/plugins/ohe/gui/OheEditor.java
r32583 r33185 16 16 import javax.swing.JScrollPane; 17 17 18 import org.openstreetmap.josm.Main; 18 19 import org.openstreetmap.josm.plugins.ohe.ClockSystem; 19 20 import org.openstreetmap.josm.plugins.ohe.OpeningTimeUtils; … … 33 34 g.setColor(Color.WHITE); 34 35 g.fillRect(0, 0, getWidth(), getHeight()); 35 36 36 37 // draw the time from 12PM to 00AM in a different color 37 38 if (dialog.getHourMode() == ClockSystem.TWELVE_HOURS) { … … 135 136 g.setColor(Color.WHITE); 136 137 g.fillRect(0, 0, getWidth(), getHeight()); 137 138 138 139 // draw the time from 12PM to 00AM in a different color 139 140 if (dialog.getHourMode() == ClockSystem.TWELVE_HOURS) { … … 186 187 time = dialog.getTime(); 187 188 } catch (Exception exc) { 189 Main.warn(exc, "Disable opening hours editor:"); 188 190 setEnabled(false); 189 191 return; -
applications/editors/josm/plugins/OpeningHoursEditor/src/org/openstreetmap/josm/plugins/ohe/parser/OpeningTimeCompiler.jj
r30116 r33185 60 60 */ 61 61 public OpeningTimeCompiler(String time) { 62 this(new ByteArrayInputStream(time.getBytes()), null);62 this(new ByteArrayInputStream(time.getBytes()), "utf-8"); 63 63 } 64 64 }
Note:
See TracChangeset
for help on using the changeset viewer.