]> git.saurik.com Git - wxWidgets.git/blobdiff - contrib/src/stc/stc.cpp
The mmedia contrib requires sys/soundcard.h on unix, so disable it on unix
[wxWidgets.git] / contrib / src / stc / stc.cpp
index b003480d48b570c671cb09d6ca3f5508854fb17c..86a9690efb7ffcfe82919a28c1cc80498690c6a8 100644 (file)
@@ -2529,7 +2529,7 @@ void wxStyledTextCtrl::StyleSetFont(int styleNum, wxFont& font) {
     bool           bold     = font.GetWeight() == wxBOLD;
     bool           italic   = font.GetStyle() != wxNORMAL;
     bool           under    = font.GetUnderlined();
-    wxFontEncoding encoding = font.GetDefaultEncoding();
+    wxFontEncoding encoding = font.GetEncoding();
     
     StyleSetFontAttr(styleNum, size, faceName, bold, italic, under, encoding);
 }