summaryrefslogtreecommitdiff
path: root/src/core/model
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/model')
-rw-r--r--src/core/model/Document.cpp4
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);
}