summaryrefslogtreecommitdiff
path: root/fpdfsdk/src/fpdfppo.cpp
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2015-11-20 09:39:49 -0800
committerTom Sepez <tsepez@chromium.org>2015-11-20 09:39:49 -0800
commitbd716fcf89f38bb82eb97ae73e9af60c2232328e (patch)
tree265fd408ab60a6ee2824b949eff048b97e6e23d8 /fpdfsdk/src/fpdfppo.cpp
parent3ccd36892fe826e8f2ed8dde0819756ae3546733 (diff)
downloadpdfium-bd716fcf89f38bb82eb97ae73e9af60c2232328e.tar.xz
Update master fpdfsdk to match XFA
R=thestig@chromium.org Review URL: https://codereview.chromium.org/1458853005 .
Diffstat (limited to 'fpdfsdk/src/fpdfppo.cpp')
-rw-r--r--fpdfsdk/src/fpdfppo.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/fpdfsdk/src/fpdfppo.cpp b/fpdfsdk/src/fpdfppo.cpp
index fb3510c083..d5b3a8be7c 100644
--- a/fpdfsdk/src/fpdfppo.cpp
+++ b/fpdfsdk/src/fpdfppo.cpp
@@ -192,12 +192,10 @@ CPDF_Object* CPDF_PageOrganizer::PageDictGetInheritableTag(
return pDict->GetElement((const char*)nSrctag);
while (pp) {
- if (pp->KeyExist((const char*)nSrctag)) {
+ if (pp->KeyExist((const char*)nSrctag))
return pp->GetElement((const char*)nSrctag);
- }
- if (!pp->KeyExist("Parent")) {
+ if (!pp->KeyExist("Parent"))
break;
- }
pp = ToDictionary(pp->GetElement("Parent")->GetDirect());
}
return nullptr;