Use the overload of wxComboBox::Append that takes a wxArrayString rather than manually looping over the items
Originally committed to SVN as r6703.
This commit is contained in:
parent
e5540de2da
commit
d83507c816
1 changed files with 1 additions and 3 deletions
|
@ -245,9 +245,7 @@ DialogStyleEditor::DialogStyleEditor(wxWindow *parent, AssStyle *style, agi::Con
|
|||
Alignment->SetSelection(AlignToControl(style->alignment));
|
||||
// Fill font face list box
|
||||
FontName->Freeze();
|
||||
for (size_t i = 0; i < fontList.size(); i++) {
|
||||
FontName->Append(fontList[i]);
|
||||
}
|
||||
FontName->Append(fontList);
|
||||
FontName->SetValue(style->font);
|
||||
FontName->Thaw();
|
||||
|
||||
|
|
Loading…
Reference in a new issue