From: Stefan Csomor Date: Tue, 30 Sep 2008 11:59:06 +0000 (+0000) Subject: performance fix by Tim Kosse X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/24c7547c131f6e3e0669a690470f13988f3bc7ad?ds=inline performance fix by Tim Kosse git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55977 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/osx/carbon/textctrl.cpp b/src/osx/carbon/textctrl.cpp index b30b691016..570c242c10 100644 --- a/src/osx/carbon/textctrl.cpp +++ b/src/osx/carbon/textctrl.cpp @@ -1062,7 +1062,8 @@ void wxMacMLTEControl::TXNSetAttribute( const wxTextAttr& style , long from , lo if ( typeAttrCount > 0 ) { verify_noerr( TXNSetTypeAttributes( m_txn , typeAttrCount, typeAttr, from , to ) ); - relayout = true; + if (from != to) + relayout = true; } if ( tabs != NULL )