Code development platform for open source projects from the European Union institutions

Skip to content
Snippets Groups Projects
Commit 487c64e8 authored by Markus Quaritsch's avatar Markus Quaritsch
Browse files

bugfix powertrain position helper - parsing position

(cherry picked from commit de3ee0b6f48bb679bd1767613c1e46f720344eec)
parent 39f088b9
No related branches found
No related tags found
No related merge requests found
......@@ -43,7 +43,7 @@ namespace TUGraz.VectoCommon.InputData
}
if (prefix.Equals("B", StringComparison.InvariantCultureIgnoreCase) || prefix.Equals("E", StringComparison.InvariantCultureIgnoreCase)) {
return (BatteryElectricPrefix + prefix + pos.Replace("B", "E")).ParseEnum<PowertrainPosition>();
return (BatteryElectricPrefix + (prefix + pos).Replace("B", "E")).ParseEnum<PowertrainPosition>();
}
throw new VectoException("invalid powertrain position {0}", pos);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment