From 525da4a89e04b45830ef3da2a963c7217d4ebaec Mon Sep 17 00:00:00 2001
From: Michael Krisper <michael.krisper@tugraz.at>
Date: Wed, 26 Apr 2017 10:22:21 +0200
Subject: [PATCH] Segments: Corrected error in lookup of vehicle height

---
 VectoCore/VectoCore/Models/Declaration/Segments.cs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/VectoCore/VectoCore/Models/Declaration/Segments.cs b/VectoCore/VectoCore/Models/Declaration/Segments.cs
index 106aa72a2b..c9bd41e31d 100644
--- a/VectoCore/VectoCore/Models/Declaration/Segments.cs
+++ b/VectoCore/VectoCore/Models/Declaration/Segments.cs
@@ -142,7 +142,7 @@ namespace TUGraz.VectoCore.Models.Declaration
 				var rigidGVWrow = _segmentTable.AsEnumerable().FirstOrDefault(r => {
 					var massMin = r.ParseDouble("gvw_min").SI().Ton;
 					var massMax = r.ParseDouble("gvw_max").SI().Ton;
-					return new[] { "1", "2", "3", "4" }.Contains(r.Field<string>("vehiclecategory"))
+					return new[] { "1", "2", "3", "4" }.Contains(r.Field<string>("hdvclass"))
 							&& massMin <= grossVehicleMassRating && grossVehicleMassRating <= massMax;
 				});
 				if (rigidGVWrow != null)
-- 
GitLab