optimization by Tim Kosse/Filezilla

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@55856 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor
2008-09-25 09:50:38 +00:00
parent 25cd015f7b
commit a67b5195c2

View File

@@ -1,7 +1,7 @@
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
// Name: src/mac/carbon/textctrl.cpp // Name: src/mac/carbon/textctrl.cpp
// Purpose: wxTextCtrl // Purpose: wxTextCtrl
// Author: Stefan Csomor // Author: Stefan Csomor
// Modified by: Ryan Norton (MLTE GetLineLength and GetLineText) // Modified by: Ryan Norton (MLTE GetLineLength and GetLineText)
// Created: 1998-01-01 // Created: 1998-01-01
// RCS-ID: $Id$ // RCS-ID: $Id$
@@ -1956,7 +1956,8 @@ void wxMacMLTEControl::TXNSetAttribute( const wxTextAttr& style , long from , lo
if ( typeAttrCount > 0 ) if ( typeAttrCount > 0 )
{ {
verify_noerr( TXNSetTypeAttributes( m_txn , typeAttrCount, typeAttr, from , to ) ); verify_noerr( TXNSetTypeAttributes( m_txn , typeAttrCount, typeAttr, from , to ) );
relayout = true; if (from != to)
relayout = true;
} }
if ( tabs != NULL ) if ( tabs != NULL )