]> git.saurik.com Git - wxWidgets.git/commitdiff
performance fix by Tim Kosse
authorStefan Csomor <csomor@advancedconcepts.ch>
Tue, 30 Sep 2008 11:59:06 +0000 (11:59 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Tue, 30 Sep 2008 11:59:06 +0000 (11:59 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55977 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/osx/carbon/textctrl.cpp

index b30b691016d745eccc2aba48b0ae5788822fd617..570c242c106658e3495a3733038987e795ebe45c 100644 (file)
@@ -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 )