summaryrefslogtreecommitdiff
path: root/xfa
diff options
context:
space:
mode:
authorJun Fang <jun_fang@foxitsoftware.com>2015-12-18 10:04:19 +0800
committerJun Fang <jun_fang@foxitsoftware.com>2015-12-18 10:04:19 +0800
commitc5d934dff4c2fa254b445dbf06899bb181df1c12 (patch)
tree444f3557c7f58b503ef789b44ab59d13fd03c5f3 /xfa
parentb6718d06db22252fa44117cc3be11430da7779f9 (diff)
downloadpdfium-c5d934dff4c2fa254b445dbf06899bb181df1c12.tar.xz
Fix a bug that items can't be selected in list boxes
BUG=pdfium:328 R=tsepez@chromium.org Review URL: https://codereview.chromium.org/1538513002 .
Diffstat (limited to 'xfa')
-rw-r--r--xfa/src/fwl/src/basewidget/fwl_comboboximp.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/xfa/src/fwl/src/basewidget/fwl_comboboximp.cpp b/xfa/src/fwl/src/basewidget/fwl_comboboximp.cpp
index 38f34d9657..f1a80df790 100644
--- a/xfa/src/fwl/src/basewidget/fwl_comboboximp.cpp
+++ b/xfa/src/fwl/src/basewidget/fwl_comboboximp.cpp
@@ -1157,7 +1157,7 @@ void CFWL_ComboBoxImp::DisForm_InitComboList() {
prop.m_dwStates = FWL_WGTSTATE_Invisible;
prop.m_pDataProvider = m_pProperties->m_pDataProvider;
prop.m_pThemeProvider = m_pProperties->m_pThemeProvider;
- m_pListBox.reset(IFWL_ListBox::Create(prop, m_pInterface));
+ m_pListBox.reset(IFWL_ListBox::CreateComboList(prop, m_pInterface));
m_pListBox->Initialize();
}
void CFWL_ComboBoxImp::DisForm_InitComboEdit() {
@@ -1167,7 +1167,7 @@ void CFWL_ComboBoxImp::DisForm_InitComboEdit() {
CFWL_WidgetImpProperties prop;
prop.m_pParent = m_pInterface;
prop.m_pThemeProvider = m_pProperties->m_pThemeProvider;
- m_pEdit.reset(IFWL_Edit::Create(prop, m_pInterface));
+ m_pEdit.reset(IFWL_Edit::CreateComboEdit(prop, m_pInterface));
m_pEdit->Initialize();
static_cast<CFWL_ComboEditImp*>(m_pEdit->GetImpl())->SetOuter(m_pInterface);
}