diff --git a/src/xml/xml.cpp b/src/xml/xml.cpp index 4c6dcdd771..25ffc91ea9 100644 --- a/src/xml/xml.cpp +++ b/src/xml/xml.cpp @@ -385,7 +385,7 @@ static wxString CharToString(wxMBConv *conv, const wxWCharBuffer wbuf( wxConvUTF8.cMB2WC(s, len == wxSTRING_MAXLEN ? wxNO_LEN : len, NULL)); - return wxString(wbuf, conv); + return wxString(wbuf, *conv); } else // already in UTF-8, no conversion needed {