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

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

fix typo

parent 1d41f9ed
No related branches found
No related tags found
No related merge requests found
......@@ -200,7 +200,7 @@ namespace TUGraz.VectoCore.OutputData.XML
protected internal override void DoWriteReport()
{
var sumWeightinFactors = Missions.Values.Sum(x => x.ResultEntry.Values.Sum(y => y.WeightingFactor));
if (!sumWeightinFactors.IsEqual(0) || !sumWeightinFactors.IsEqual(1)) {
if (!sumWeightinFactors.IsEqual(0) && !sumWeightinFactors.IsEqual(1)) {
throw new VectoException("Mission Profile Weighting factors do not sum up to 1!");
}
foreach (var result in Missions.OrderBy(m => m.Key)) {
......
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