diff options
author | Tom Sepez <tsepez@chromium.org> | 2015-11-24 13:33:57 -0800 |
---|---|---|
committer | Tom Sepez <tsepez@chromium.org> | 2015-11-24 13:33:57 -0800 |
commit | 540c436dc8e7d7b700b448acc8536f5cf68d4b74 (patch) | |
tree | bff6a2297a280b39753d93b64ec61d6c9459b50a /fpdfsdk/src/fsdk_annothandler.cpp | |
parent | ed19d211f96f47e06dc1b597c5a054e17d7e160d (diff) | |
download | pdfium-540c436dc8e7d7b700b448acc8536f5cf68d4b74.tar.xz |
XFA: more underlying type changes to match master
R=thestig@chromium.org
Review URL: https://codereview.chromium.org/1474663004 .
Diffstat (limited to 'fpdfsdk/src/fsdk_annothandler.cpp')
-rw-r--r-- | fpdfsdk/src/fsdk_annothandler.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/fpdfsdk/src/fsdk_annothandler.cpp b/fpdfsdk/src/fsdk_annothandler.cpp index 2965d3290f..5edd88a8e2 100644 --- a/fpdfsdk/src/fsdk_annothandler.cpp +++ b/fpdfsdk/src/fsdk_annothandler.cpp @@ -142,10 +142,10 @@ void CPDFSDK_AnnotHandlerMgr::Annot_OnDraw(CPDFSDK_PageView* pPageView, if (IPDFSDK_AnnotHandler* pAnnotHandler = GetAnnotHandler(pAnnot)) { pAnnotHandler->OnDraw(pPageView, pAnnot, pDevice, pUser2Device, dwFlags); } else { - if (!pAnnot->IsXFAField()) { - static_cast<CPDFSDK_BAAnnot*>(pAnnot) - ->DrawAppearance(pDevice, pUser2Device, CPDF_Annot::Normal, nullptr); - } + if (pAnnot->IsXFAField()) + return; + static_cast<CPDFSDK_BAAnnot*>(pAnnot) + ->DrawAppearance(pDevice, pUser2Device, CPDF_Annot::Normal, nullptr); } } |