diff options
author | Tom Sepez <tsepez@chromium.org> | 2015-11-20 09:39:49 -0800 |
---|---|---|
committer | Tom Sepez <tsepez@chromium.org> | 2015-11-20 09:39:49 -0800 |
commit | bd716fcf89f38bb82eb97ae73e9af60c2232328e (patch) | |
tree | 265fd408ab60a6ee2824b949eff048b97e6e23d8 /fpdfsdk/src/fpdfppo.cpp | |
parent | 3ccd36892fe826e8f2ed8dde0819756ae3546733 (diff) | |
download | pdfium-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.cpp | 6 |
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; |