wxFontEnumerator::GetFacenames/Encodings() now return arrays and not pointers to them (patch 1483341)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39371 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1351,15 +1351,14 @@ wxFont wxXmlResourceHandler::GetFont(const wxString& param)
|
||||
if (hasFacename)
|
||||
{
|
||||
wxString faces = GetParamValue(wxT("face"));
|
||||
wxFontEnumerator enu;
|
||||
enu.EnumerateFacenames();
|
||||
wxArrayString facenames(wxFontEnumerator::GetFacenames());
|
||||
wxStringTokenizer tk(faces, wxT(","));
|
||||
while (tk.HasMoreTokens())
|
||||
{
|
||||
int index = enu.GetFacenames()->Index(tk.GetNextToken(), false);
|
||||
int index = facenames.Index(tk.GetNextToken(), false);
|
||||
if (index != wxNOT_FOUND)
|
||||
{
|
||||
facename = (*enu.GetFacenames())[index];
|
||||
facename = facenames[index];
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user