fix condition

This commit is contained in:
sonora 2017-10-28 17:25:32 +02:00
parent b2c8a6f557
commit 93c12b50e3
2 changed files with 2 additions and 2 deletions

View file

@ -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;
}
}

View file

@ -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);
}
}