Skip to content

Commit e481cb2

Browse files
committed
Throw an error when using the conditions tag when the condition tag is sufficient
1 parent 4fac458 commit e481cb2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/robots/common/twoDModel/src/engine/constraints/details/constraintsParser.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ Condition ConstraintsParser::parseConditionsAlternative(const QDomElement &eleme
251251

252252
Condition ConstraintsParser::parseConditionsTag(const QDomElement &element, Event &event)
253253
{
254-
if (!assertChildrenMoreThan(element, 0) || !assertAttributeNonEmpty(element, "glue")) {
254+
if (!assertChildrenMoreThan(element, 1) || !assertAttributeNonEmpty(element, "glue")) {
255255
return mConditions.constant(true);
256256
}
257257

0 commit comments

Comments
 (0)