summaryrefslogtreecommitdiff
path: root/xfa/fde
diff options
context:
space:
mode:
authordan sinclair <dsinclair@chromium.org>2017-04-06 14:09:04 -0400
committerChromium commit bot <commit-bot@chromium.org>2017-04-06 19:15:32 +0000
commit93c086c8bc8080e7591def6eb617dfd6d11b9932 (patch)
tree698771b1c0f42ec2fdb66906fb79e8336844b12f /xfa/fde
parentdeff61fe7368c2db41d31accb45291dd41bacd4f (diff)
downloadpdfium-93c086c8bc8080e7591def6eb617dfd6d11b9932.tar.xz
Cleanup nits from previous XML Cl
Change-Id: I1e0b84a8b208d92aff3f02b6461b3a20f60f4d1e Reviewed-on: https://pdfium-review.googlesource.com/3870 Reviewed-by: Nicolás Peña <npm@chromium.org> Commit-Queue: Nicolás Peña <npm@chromium.org>
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);