Index: DamEngine/trunk/src/Deltares.DamEngine.Calculators/PlLinesCreator/PlLinesCreator.cs =================================================================== diff -u -r7077 -r7084 --- DamEngine/trunk/src/Deltares.DamEngine.Calculators/PlLinesCreator/PlLinesCreator.cs (.../PlLinesCreator.cs) (revision 7077) +++ DamEngine/trunk/src/Deltares.DamEngine.Calculators/PlLinesCreator/PlLinesCreator.cs (.../PlLinesCreator.cs) (revision 7084) @@ -1102,7 +1102,7 @@ { if (gaugePlLinePoint.GaugeIDX != null && gaugePlLinePoint.GaugeIDX != "") { - Gauge gauge = gauges.Where(x => x.Name == gaugePlLinePoint.GaugeIDX && x.Location == location).FirstOrDefault(); + Gauge gauge = gauges.FirstOrDefault(x => x.Name == gaugePlLinePoint.GaugeIDX && x.Location == location); if (gauge != null) { localX = gauge.LocalX; @@ -1115,7 +1115,7 @@ if (gaugePlLinePoint.GaugeIDZ != null && gaugePlLinePoint.GaugeIDZ != "") { - Gauge gauge = gauges.Where(x => x.Name == gaugePlLinePoint.GaugeIDZ && x.Location == location).FirstOrDefault(); + Gauge gauge = gauges.FirstOrDefault(x => x.Name == gaugePlLinePoint.GaugeIDZ && x.Location == location); if (gauge != null) { if (!gauge.Value.HasValue || ((double) gauge.Value).IsNearEqual(GaugeMissVal, toleranceAlmostEqual))