Fix for a bug where the line number was reported as column number when validating constraints

This commit is contained in:
Pieter Edelman 2021-05-19 16:41:58 +02:00
parent 857e504315
commit 396e562d89
1 changed files with 1 additions and 1 deletions

View File

@ -5044,7 +5044,7 @@ public class InstanceValidator extends BaseValidator implements IResourceValidat
} else if (inv.getSeverity() == ConstraintSeverity.ERROR) {
rule(errors, IssueType.INVARIANT, element.line(), element.col(), path, ok, inv.getKey() + ": '" + inv.getHuman()+"' " + msg);
} else if (inv.getSeverity() == ConstraintSeverity.WARNING) {
warning(errors, IssueType.INVARIANT, element.line(), element.line(), path, ok, inv.getKey() + ": '" + inv.getHuman()+"' " + msg);
warning(errors, IssueType.INVARIANT, element.line(), element.col(), path, ok, inv.getKey() + ": '" + inv.getHuman()+"' " + msg);
}
}
}