From 9e5089e25c789dbf1e109f462a94f760cda90fb6 Mon Sep 17 00:00:00 2001
From: Markus Quaritsch <markus.quaritsch@tugraz.at>
Date: Mon, 18 May 2020 23:11:48 +0200
Subject: [PATCH] fix typo

---
 VectoCore/VectoCore/OutputData/XML/XMLDeclarationReport.cs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/VectoCore/VectoCore/OutputData/XML/XMLDeclarationReport.cs b/VectoCore/VectoCore/OutputData/XML/XMLDeclarationReport.cs
index 7ae2afd106..c3f86038c1 100644
--- a/VectoCore/VectoCore/OutputData/XML/XMLDeclarationReport.cs
+++ b/VectoCore/VectoCore/OutputData/XML/XMLDeclarationReport.cs
@@ -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)) {
-- 
GitLab