From c4d23a8699025e60ace2926189a943e8b6ef96c0 Mon Sep 17 00:00:00 2001 From: Benjamin Paassen Date: Wed, 4 Mar 2015 14:46:39 +0100 Subject: fixed a bug in Stack.cpp which lead to wrong annotation handling if the annotation has no content. --- src/core/parser/stack/Stack.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/core/parser/stack/Stack.cpp b/src/core/parser/stack/Stack.cpp index 23c857a..bd16b43 100644 --- a/src/core/parser/stack/Stack.cpp +++ b/src/core/parser/stack/Stack.cpp @@ -802,8 +802,8 @@ void StackImpl::handleFieldEnd(bool endRange) if (info.range && endRange) { if (!info.hadDefaultField) { bool isDefault = true; - info.handler->fieldStart(isDefault, true); - info.fieldStart(true, true, true); + bool valid = info.handler->fieldStart(isDefault, true); + info.fieldStart(true, true, valid); } endCurrentHandler(); return; -- cgit v1.2.3