Fix building font sample in STL mode after recent breakage
The changes of adb8bbab4d
(Sort font names in the dialog showing them in
the font sample, 2022-05-12) didn't compile with wxUSE_STL==1 because
wxSortedArrayString doesn't inherit from wxArrayString in this case.
Fix this by using wxArrayString and its Sort() method instead.
This commit is contained in:
parent
9fe3d3c0c9
commit
6268b5c619
@ -648,12 +648,15 @@ bool MyFrame::DoEnumerateFamilies(bool fixedWidthOnly,
|
||||
else
|
||||
{
|
||||
// let the user choose
|
||||
wxSortedArrayString facenames;
|
||||
wxArrayString facenames;
|
||||
facenames.Alloc(nFacenames);
|
||||
int n;
|
||||
for ( n = 0; n < nFacenames; n++ )
|
||||
facenames.Add(fontEnumerator.GetFacenames().Item(n));
|
||||
|
||||
// it's more convenient to see the fonts in alphabetical order
|
||||
facenames.Sort();
|
||||
|
||||
n = wxGetSingleChoiceIndex
|
||||
(
|
||||
"Choose a facename",
|
||||
|
Loading…
Reference in New Issue
Block a user