diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/core/model/Document.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/model/Document.cpp b/src/core/model/Document.cpp index 7e5e437..0bf50e5 100644 --- a/src/core/model/Document.cpp +++ b/src/core/model/Document.cpp @@ -676,8 +676,8 @@ bool Anchor::doValidate(Logger &logger) const valid = false; } if (annotation == nullptr) { - // this is valid but should throw a warning. - logger.warning("This anchor is disconnected.", *this); + logger.error("This anchor is disconnected.", *this); + valid = false; } return valid & StructureNode::doValidate(logger); } |