From 24c7547c131f6e3e0669a690470f13988f3bc7ad Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Tue, 30 Sep 2008 11:59:06 +0000 Subject: [PATCH] performance fix by Tim Kosse git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55977 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/osx/carbon/textctrl.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 ) -- 2.45.2