diff options
Diffstat (limited to 'xfa/fxfa/fm2js/cxfa_fmexpression.cpp')
-rw-r--r-- | xfa/fxfa/fm2js/cxfa_fmexpression.cpp | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/xfa/fxfa/fm2js/cxfa_fmexpression.cpp b/xfa/fxfa/fm2js/cxfa_fmexpression.cpp index 638922cfd5..481b76c868 100644 --- a/xfa/fxfa/fm2js/cxfa_fmexpression.cpp +++ b/xfa/fxfa/fm2js/cxfa_fmexpression.cpp @@ -263,17 +263,10 @@ bool CXFA_FMIfExpression::ToJavaScript(CFX_WideTextBuf& js, ReturnType type) { } if (m_pElseExpression) { - if (m_pElseExpression->GetExpType() == XFA_FM_EXPTYPE_IF) { - js << L"else\n{\n"; - if (!m_pElseExpression->ToJavaScript(js, type)) - return false; - - js << L"}\n"; - } else { - js << L"else\n"; - if (!m_pElseExpression->ToJavaScript(js, type)) - return false; - } + js << L"else\n{\n"; + if (!m_pElseExpression->ToJavaScript(js, type)) + return false; + js << L"}\n"; } return !CXFA_IsTooBig(js); } |