Changeset 24290 in osm for applications


Ignore:
Timestamp:
2010-11-17T12:04:32+01:00 (14 years ago)
Author:
boman
Message:

fixed bug, time-range of new TimeRects is now checked

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/OpeningHoursEditor/src/org/openstreetmap/josm/plugins/ohe/gui/OheEditor.java

    r23192 r24290  
    306306                    / (getMinuteHeight() * TimeRect.minuteResterize))
    307307                    * TimeRect.minuteResterize;
     308           
     309            // ensure that the new time is in a valid range
     310            day1 = Math.max(day1, 0);
     311            day1 = Math.min(day1, 6);
     312            minute1 = Math.max(minute1, 0);
     313            minute1 = Math.min(minute1, 24 * 60);
     314           
    308315            repaint();
    309316        }
Note: See TracChangeset for help on using the changeset viewer.