From 0b1ac24e53687a1687211b095fab82db25ccbfcd Mon Sep 17 00:00:00 2001
From: Markus Quaritsch <markus.quaritsch@tugraz.at>
Date: Wed, 28 Mar 2018 17:24:35 +0200
Subject: [PATCH] change conditions for segment lookup to > (instead of >=)

---
 VectoCore/VectoCore/Models/Declaration/Segments.cs | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/VectoCore/VectoCore/Models/Declaration/Segments.cs b/VectoCore/VectoCore/Models/Declaration/Segments.cs
index 40266e5d7d..c2390699b8 100644
--- a/VectoCore/VectoCore/Models/Declaration/Segments.cs
+++ b/VectoCore/VectoCore/Models/Declaration/Segments.cs
@@ -130,9 +130,8 @@ namespace TUGraz.VectoCore.Models.Declaration
 					return (considerInvalid || isValid == "1")
 							&& category == vehicleCategory.ToString()
 							&& axleConf == axleConfiguration.GetName()
-						// MK 2016-06-07: normally the next condition should be "mass > massMin", except for 7.5t where is should be ">="
-						// in any case ">=" is also correct, because the segment table is sorted by weight.
-							&& massMin <= grossVehicleMassRating && grossVehicleMassRating <= massMax;
+							&& grossVehicleMassRating > massMin && grossVehicleMassRating <= massMax;
+
 				});
 			} catch (InvalidOperationException e) {
 				var errorMessage = string.Format(ErrorMessage, vehicleCategory, axleConfiguration.GetName(),
-- 
GitLab