summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2015-12-24 21:13:35 -0800
committerLei Zhang <thestig@chromium.org>2015-12-24 21:13:35 -0800
commitb43b8859153e129053f3fa790c182fa04c3336db (patch)
treea721622925485e5a4267312bf6fa0e3e38bf74a8
parentae58ed8bccc56dd78c12d89972b19d58de94f790 (diff)
downloadpdfium-b43b8859153e129053f3fa790c182fa04c3336db.tar.xz
Fix another regression from commit f6dafc9.
TBR=weili@chromium.org Review URL: https://codereview.chromium.org/1548963004 .
-rw-r--r--core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp b/core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp
index 1115a1e560..c6e48e74a2 100644
--- a/core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp
+++ b/core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp
@@ -2975,10 +2975,10 @@ FX_DWORD CPDF_DataAvail::GetObjectSize(FX_DWORD objnum, FX_FILESIZE& offset) {
if (!pParser || !pParser->IsValidObjectNumber(objnum))
return 0;
- if (pParser->m_V5Type[objnum] == 2) {
+ if (pParser->m_V5Type[objnum] == 2)
objnum = pParser->m_ObjectInfo[objnum].pos;
- } else if (pParser->m_V5Type[objnum] == 1 ||
- pParser->m_V5Type[objnum] == 255) {
+
+ if (pParser->m_V5Type[objnum] == 1 || pParser->m_V5Type[objnum] == 255) {
offset = pParser->m_ObjectInfo[objnum].pos;
if (offset == 0) {
return 0;