Ignore:
Timestamp:
2014-07-12T14:23:50+02:00 (10 years ago)
Author:
donvip
Message:

[josm_openinghourseditor] fix #josm10240 - IAE "newMinuteStart is not a valid minute" on time editing

File:
1 edited

Legend:

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

    r30117 r30519  
    289289                if (transformDirections[transformType][0])
    290290                    newMinutesStart = newMinutesStart + yDiff;
    291                 if (transformDirections[transformType][2]
    292                         && !isOpenEndInterval())
     291                if (transformDirections[transformType][2] && !isOpenEndInterval())
    293292                    newMinutesEnd = newMinutesEnd + yDiff;
    294293
    295                 if (newMinutesStart >= 0
     294                if (newMinutesStart >= 0 && newMinutesStart <= 24*60+1
    296295                        && (newMinutesEnd <= 24 * 60 || isOpenEndInterval())) {
    297296                    actualMinuteDrag += yDiff;
Note: See TracChangeset for help on using the changeset viewer.