From c721142bd89892526de6988178abd36ae1037bd4 Mon Sep 17 00:00:00 2001 From: Benjamin Paassen Date: Tue, 3 Mar 2015 21:57:10 +0100 Subject: made document validation more strict to prevent disconnected anchors. --- src/core/model/Document.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/core/model') 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); } -- cgit v1.2.3