summaryrefslogtreecommitdiff
path: root/fpdfsdk/src/fsdk_annothandler.cpp
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2015-11-24 13:33:57 -0800
committerTom Sepez <tsepez@chromium.org>2015-11-24 13:33:57 -0800
commit540c436dc8e7d7b700b448acc8536f5cf68d4b74 (patch)
treebff6a2297a280b39753d93b64ec61d6c9459b50a /fpdfsdk/src/fsdk_annothandler.cpp
parented19d211f96f47e06dc1b597c5a054e17d7e160d (diff)
downloadpdfium-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.cpp8
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);
}
}