git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14373
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
wxFillLogFont(&logFont, &m_fontData.initialFont);
}
- chooseFontStruct.rgbColors = wxColourToRGB(m_fontData.fontColour);
+ if ( m_fontData.fontColour.Ok() )
+ {
+ chooseFontStruct.rgbColors = wxColourToRGB(m_fontData.fontColour);
+
+ // need this for the colour to be taken into account
+ flags |= CF_EFFECTS;
+ }
// CF_ANSIONLY flag is obsolete for Win32
if ( !m_fontData.GetAllowSymbols() )