From 7160330bfd46ddf7e9d7ef5abdcebe8c165a301e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Steffen=20F=C3=BCndgens?= Date: Mon, 19 Jan 2015 11:15:41 +0100 Subject: [PATCH] Added more error checking to the converter. --- converter/converter.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/converter/converter.cc b/converter/converter.cc index 199789e..d4314f6 100644 --- a/converter/converter.cc +++ b/converter/converter.cc @@ -247,6 +247,9 @@ void Converter::updateComposition(int idG, int idB, float posX, float posZ){ errorCheck(thisComposition->FirstChildElement("idGreen")->QueryIntText(&idGreen)); errorCheck(thisComposition->FirstChildElement("idBlue")->QueryIntText(&idBlue)); if(idGreen == idG && idBlue == idB){ + if (compositionExists){ + std::cout << "An ID is used for multiple compositions in the xml." << std::endl; + } bool manualPos; errorCheck(thisComposition->FirstChildElement("manualPos")->QueryBoolText(&manualPos)); if(!manualPos){