diff options
Diffstat (limited to 'src/uscxml/plugins/datamodel/promela/PromelaDataModel.cpp')
-rw-r--r-- | src/uscxml/plugins/datamodel/promela/PromelaDataModel.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/uscxml/plugins/datamodel/promela/PromelaDataModel.cpp b/src/uscxml/plugins/datamodel/promela/PromelaDataModel.cpp index aa32806..bf0cc11 100644 --- a/src/uscxml/plugins/datamodel/promela/PromelaDataModel.cpp +++ b/src/uscxml/plugins/datamodel/promela/PromelaDataModel.cpp @@ -122,7 +122,7 @@ void PromelaDataModel::setForeach(const std::string& item, PromelaParser arrayParser(ss.str(), PromelaParser::PROMELA_EXPR); setVariable(itemParser.ast, getVariable(arrayParser.ast)); - + if (index.length() > 0) { PromelaParser indexParser(index, PromelaParser::PROMELA_EXPR); setVariable(indexParser.ast, iteration); |