fix condition
This commit is contained in:
parent
b2c8a6f557
commit
93c12b50e3
2 changed files with 2 additions and 2 deletions
|
@ -274,7 +274,7 @@ public class WaypointHelper {
|
|||
|
||||
// For STOP first check if it has directional info
|
||||
if (info != null && info.getType() != null && info.getType() == AlarmInfoType.STOP) {
|
||||
if (ro.isStopApplicable(ro.bearingVsRouteDirection(loc), i)) {
|
||||
if (!ro.isStopApplicable(ro.bearingVsRouteDirection(loc), i)) {
|
||||
info = null;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -191,7 +191,7 @@ public class RouteCalculationResult {
|
|||
loc.setLongitude(MapUtils.get31LongitudeX(x31));
|
||||
AlarmInfo info = AlarmInfo.createAlarmInfo(typeRule, locInd, loc);
|
||||
// For STOP first check if it has directional info
|
||||
if ((info != null) && !((info.getType() == AlarmInfoType.STOP) && res.getObject().isStopApplicable(res.isForwardDirection(), intId))) {
|
||||
if ((info != null) && !((info.getType() == AlarmInfoType.STOP) && !res.getObject().isStopApplicable(res.isForwardDirection(), intId))) {
|
||||
alarms.add(info);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue