summaryrefslogtreecommitdiff
path: root/xfa/fxfa/cxfa_ffnumericedit.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'xfa/fxfa/cxfa_ffnumericedit.cpp')
-rw-r--r--xfa/fxfa/cxfa_ffnumericedit.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/xfa/fxfa/cxfa_ffnumericedit.cpp b/xfa/fxfa/cxfa_ffnumericedit.cpp
index 6229fdcd2c..be0b306802 100644
--- a/xfa/fxfa/cxfa_ffnumericedit.cpp
+++ b/xfa/fxfa/cxfa_ffnumericedit.cpp
@@ -59,10 +59,9 @@ void CXFA_FFNumericEdit::UpdateWidgetProperty() {
pWidget->SetLimit(*numCells);
}
dwExtendedStyle |= GetAlignment();
- if (!m_pDataAcc->IsOpenAccess() ||
- !m_pDataAcc->GetDoc()->GetXFADoc()->IsInteractive()) {
+ if (!m_pDataAcc->IsOpenAccess() || !GetDoc()->GetXFADoc()->IsInteractive())
dwExtendedStyle |= FWL_STYLEEXT_EDT_ReadOnly;
- }
+
m_pNormalWidget->ModifyStylesEx(dwExtendedStyle, 0xFFFFFFFF);
}