diff options
Diffstat (limited to 'cui/source/dialogs/hangulhanjadlg.cxx')
-rw-r--r-- | cui/source/dialogs/hangulhanjadlg.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/cui/source/dialogs/hangulhanjadlg.cxx b/cui/source/dialogs/hangulhanjadlg.cxx index 74f46d3d3647..01cc5ad80ecf 100644 --- a/cui/source/dialogs/hangulhanjadlg.cxx +++ b/cui/source/dialogs/hangulhanjadlg.cxx @@ -960,6 +960,8 @@ namespace svx } } } + if (m_xDictsLB->n_children()) + m_xDictsLB->select(0); } IMPL_LINK_NOARG(HangulHanjaOptionsDialog, OkHdl, weld::Button&, void) @@ -1142,8 +1144,7 @@ namespace svx void HangulHanjaOptionsDialog::AddDict(const OUString& rName, bool bChecked) { - m_xDictsLB->insert(nullptr, -1, nullptr, nullptr, - nullptr, nullptr, nullptr, false); + m_xDictsLB->append(); int nRow = m_xDictsLB->n_children() - 1; m_xDictsLB->set_toggle(nRow, bChecked, 0); m_xDictsLB->set_text(nRow, rName, 1); |