tdf#121538 index 1 never existed
Change-Id: I8493685ceab81a2bd07a3fc75b371a0f679695fb
Reviewed-on: https://gerrit.libreoffice.org/63651
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
diff --git a/cui/source/tabpages/numfmt.cxx b/cui/source/tabpages/numfmt.cxx
index a134030..69b2533 100644
--- a/cui/source/tabpages/numfmt.cxx
+++ b/cui/source/tabpages/numfmt.cxx
@@ -1612,7 +1612,9 @@ IMPL_LINK_NOARG(SvxNumberFormatTabPage, LostFocusHdl_Impl, weld::Widget&, void)
{
sal_uInt16 nSelPos = m_xLbFormat->get_selected_index();
pNumFmtShell->SetComment4Entry(nSelPos, m_xEdComment->get_text());
m_xEdComment->set_text(m_xLbCategory->get_text(1)); // String for user defined
// String for user defined, if present
OUString sEntry = m_xLbCategory->n_children() > 1 ? m_xLbCategory->get_text(1) : OUString();
m_xEdComment->set_text(sEntry);
}
}