summaryrefslogtreecommitdiff
path: root/xfa/fde
diff options
context:
space:
mode:
Diffstat (limited to 'xfa/fde')
-rw-r--r--xfa/fde/xml/cfde_xmlsyntaxparser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/xfa/fde/xml/cfde_xmlsyntaxparser.cpp b/xfa/fde/xml/cfde_xmlsyntaxparser.cpp
index 9adf11be0f..57501cceca 100644
--- a/xfa/fde/xml/cfde_xmlsyntaxparser.cpp
+++ b/xfa/fde/xml/cfde_xmlsyntaxparser.cpp
@@ -683,7 +683,7 @@ void CFDE_XMLSyntaxParser::ParseTextChar(wchar_t character) {
}
}
}
- if (m_iEntityStart > 0 &&
+ if (m_iEntityStart >= 0 &&
m_BlockBuffer.GetDataLength() > static_cast<size_t>(m_iEntityStart)) {
m_BlockBuffer.DeleteTextChars(m_BlockBuffer.GetDataLength() -
m_iEntityStart);