The presence of the effects controls (i.e. color) should not depend on whether or not a color is present in the font data, but rather whether or not EnableEffects is true or false
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30684 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -87,9 +87,6 @@ int wxFontDialog::ShowModal()
|
|||||||
if ( m_fontData.m_fontColour.Ok() )
|
if ( m_fontData.m_fontColour.Ok() )
|
||||||
{
|
{
|
||||||
chooseFontStruct.rgbColors = wxColourToRGB(m_fontData.m_fontColour);
|
chooseFontStruct.rgbColors = wxColourToRGB(m_fontData.m_fontColour);
|
||||||
|
|
||||||
// need this for the colour to be taken into account
|
|
||||||
flags |= CF_EFFECTS;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// CF_ANSIONLY flag is obsolete for Win32
|
// CF_ANSIONLY flag is obsolete for Win32
|
||||||
|
Reference in New Issue
Block a user