Ignore:
Timestamp:
2017-03-12T15:45:39+01:00 (7 years ago)
Author:
stoecker
Message:

fix #josm13596 - editor does not display existing data

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  
    1616import javax.swing.JScrollPane;
    1717
     18import org.openstreetmap.josm.Main;
    1819import org.openstreetmap.josm.plugins.ohe.ClockSystem;
    1920import org.openstreetmap.josm.plugins.ohe.OpeningTimeUtils;
     
    3334                g.setColor(Color.WHITE);
    3435                g.fillRect(0, 0, getWidth(), getHeight());
    35                
     36
    3637                // draw the time from 12PM to 00AM in a different color
    3738                if (dialog.getHourMode() == ClockSystem.TWELVE_HOURS) {
     
    135136                g.setColor(Color.WHITE);
    136137                g.fillRect(0, 0, getWidth(), getHeight());
    137                
     138
    138139                // draw the time from 12PM to 00AM in a different color
    139140                if (dialog.getHourMode() == ClockSystem.TWELVE_HOURS) {
     
    186187            time = dialog.getTime();
    187188        } catch (Exception exc) {
     189            Main.warn(exc, "Disable opening hours editor:");
    188190            setEnabled(false);
    189191            return;
  • applications/editors/josm/plugins/OpeningHoursEditor/src/org/openstreetmap/josm/plugins/ohe/parser/OpeningTimeCompiler.jj

    r30116 r33185  
    6060   */
    6161  public OpeningTimeCompiler(String time) {
    62     this(new ByteArrayInputStream(time.getBytes()), null);
     62    this(new ByteArrayInputStream(time.getBytes()), "utf-8");
    6363  }
    6464}
Note: See TracChangeset for help on using the changeset viewer.