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:
Stefan Csomor
2008-02-29 20:47:07 +00:00
parent a766986f6d
commit 6a8cbe1b92

View File

@@ -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() ;