From 67c2de94f7f8013c76342b77ddf5ee0997e2c106 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Wed, 11 Nov 2015 20:53:23 +0200 Subject: [PATCH] Fixed infinite loop. --HG-- branch : develop --- src/libs/ifc/xml/vvitconverter.cpp | 1 + src/libs/ifc/xml/vvstconverter.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/src/libs/ifc/xml/vvitconverter.cpp b/src/libs/ifc/xml/vvitconverter.cpp index b518967aa..12a2db331 100644 --- a/src/libs/ifc/xml/vvitconverter.cpp +++ b/src/libs/ifc/xml/vvitconverter.cpp @@ -276,6 +276,7 @@ void VVITConverter::ConvertMeasurementsToV0_3_3() const QDomNodeList nodeList = this->elementsByTagName(QStringLiteral("m")); if (nodeList.isEmpty()) { + ++i; continue; } diff --git a/src/libs/ifc/xml/vvstconverter.cpp b/src/libs/ifc/xml/vvstconverter.cpp index 0a928e054..0162fdc62 100644 --- a/src/libs/ifc/xml/vvstconverter.cpp +++ b/src/libs/ifc/xml/vvstconverter.cpp @@ -282,6 +282,7 @@ void VVSTConverter::ConvertMeasurementsToV0_4_2() const QDomNodeList nodeList = this->elementsByTagName(QStringLiteral("m")); if (nodeList.isEmpty()) { + ++i; continue; }