+ wxArrayString standardBulletNames;
+ if (wxRichTextBuffer::GetRenderer() && m_bulletNameCtrl->GetSelection() != wxNOT_FOUND)
+ {
+ int sel = m_bulletNameCtrl->GetSelection();
+ wxString selName = m_bulletNameCtrl->GetString(sel);
+
+ // Try to get the untranslated name using the current selection index of the combobox.
+ // into account.
+ wxRichTextBuffer::GetRenderer()->EnumerateStandardBulletNames(standardBulletNames);
+ if (sel < (int) standardBulletNames.GetCount() && m_bulletNameCtrl->GetValue() == selName)
+ attr->SetBulletName(standardBulletNames[sel]);
+ else
+ attr->SetBulletName(m_bulletNameCtrl->GetValue());
+ }
+ else
+ attr->SetBulletName(m_bulletNameCtrl->GetValue());