adjusting to changed ownership (font is only created in the GetFont call of wxTextAttr)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52198 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1812,11 +1812,12 @@ void wxMacMLTEControl::TXNSetAttribute( const wxTextAttr& style , long from , lo
|
||||
TXNTab* tabs = NULL;
|
||||
|
||||
bool relayout = false;
|
||||
wxFont font ;
|
||||
|
||||
if ( style.HasFont() )
|
||||
{
|
||||
wxASSERT( typeAttrCount < WXSIZEOF(typeAttr) );
|
||||
const wxFont &font = style.GetFont() ;
|
||||
font = style.GetFont() ;
|
||||
typeAttr[typeAttrCount].tag = kTXNATSUIStyle ;
|
||||
typeAttr[typeAttrCount].size = kTXNATSUIStyleSize ;
|
||||
typeAttr[typeAttrCount].data.dataPtr = font.MacGetATSUStyle() ;
|
||||
|
Reference in New Issue
Block a user