summaryrefslogtreecommitdiffstats
path: root/cui/source/dialogs/srchxtra.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'cui/source/dialogs/srchxtra.cxx')
-rw-r--r--cui/source/dialogs/srchxtra.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/cui/source/dialogs/srchxtra.cxx b/cui/source/dialogs/srchxtra.cxx
index 39161e40765a..e1f0a869096d 100644
--- a/cui/source/dialogs/srchxtra.cxx
+++ b/cui/source/dialogs/srchxtra.cxx
@@ -146,8 +146,7 @@ SvxSearchAttributeDialog::SvxSearchAttributeDialog(weld::Window* pParent,
sal_uInt32 nId = SvxAttrNameTable::FindIndex(nSlot);
if (RESARRAY_INDEX_NOTFOUND != nId)
{
- m_xAttrLB->insert(nullptr, -1, nullptr, nullptr, nullptr,
- nullptr, nullptr, false);
+ m_xAttrLB->append();
const int nRow = m_xAttrLB->n_children() - 1;
m_xAttrLB->set_toggle(nRow, bChecked, 0);
m_xAttrLB->set_text(nRow, SvxAttrNameTable::GetString(nId), 1);