diff options
author | Tom Sepez <tsepez@chromium.org> | 2015-10-14 13:54:22 -0700 |
---|---|---|
committer | Tom Sepez <tsepez@chromium.org> | 2015-10-14 13:54:22 -0700 |
commit | eca866c64ec0319d4723798290a3155957fa733e (patch) | |
tree | 59c7bb72df8d4df62934ab4002108a57bf2df37e /fpdfsdk/src/javascript/app.cpp | |
parent | ae2d47b22d213cb36a66326c3167cfbbae90b9d4 (diff) | |
download | pdfium-eca866c64ec0319d4723798290a3155957fa733e.tar.xz |
Next round of master changes to match XFA
R=thestig@chromium.org
Review URL: https://codereview.chromium.org/1401423004 .
Diffstat (limited to 'fpdfsdk/src/javascript/app.cpp')
-rw-r--r-- | fpdfsdk/src/javascript/app.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/fpdfsdk/src/javascript/app.cpp b/fpdfsdk/src/javascript/app.cpp index 3db1e5b956..1bd089a431 100644 --- a/fpdfsdk/src/javascript/app.cpp +++ b/fpdfsdk/src/javascript/app.cpp @@ -194,12 +194,11 @@ FX_BOOL app::viewerVariation(IJS_Context* cc, FX_BOOL app::viewerVersion(IJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError) { - if (vp.IsGetting()) { - vp << JS_NUM_VIEWERVERSION; - return TRUE; - } + if (!vp.IsGetting()) + return FALSE; - return FALSE; + vp << JS_NUM_VIEWERVERSION; + return TRUE; } FX_BOOL app::platform(IJS_Context* cc, |