Fix wxTextAttr::m_fontStrikethrough initialization.
The code added in r70447 didn't initialize m_fontStrikethrough correctly. This fixes unit test failures for wxRichTextCtrl that appeared since this change. See #9907. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70448 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
2099fa90cb
commit
6e43a69f06
@ -164,6 +164,7 @@ void wxTextAttr::Init()
|
||||
m_fontStyle = wxFONTSTYLE_NORMAL;
|
||||
m_fontWeight = wxFONTWEIGHT_NORMAL;
|
||||
m_fontUnderlined = false;
|
||||
m_fontStrikethrough = false;
|
||||
m_fontEncoding = wxFONTENCODING_DEFAULT;
|
||||
m_fontFamily = wxFONTFAMILY_DEFAULT;
|
||||
|
||||
@ -193,6 +194,7 @@ void wxTextAttr::Copy(const wxTextAttr& attr)
|
||||
m_fontStyle = attr.m_fontStyle;
|
||||
m_fontWeight = attr.m_fontWeight;
|
||||
m_fontUnderlined = attr.m_fontUnderlined;
|
||||
m_fontStrikethrough = attr.m_fontStrikethrough;
|
||||
m_fontFaceName = attr.m_fontFaceName;
|
||||
m_fontEncoding = attr.m_fontEncoding;
|
||||
m_fontFamily = attr.m_fontFamily;
|
||||
|
Loading…
Reference in New Issue
Block a user