Bug #3402443 Syntax coloring and folding loosed on big xmls
This commit is contained in:
parent
f51059a54e
commit
e42354ff09
|
@ -2017,14 +2017,15 @@ void XmlCtrl::clearErrorIndicators ( int maxLine )
|
||||||
if ( maxLine < 0 )
|
if ( maxLine < 0 )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
int documentLength = GetLength();
|
int length = GetLength();
|
||||||
if ( !documentLength )
|
if ( !length )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
StartStyling ( 0, wxSTC_INDIC2_MASK );
|
StartStyling ( 0, wxSTC_INDIC2_MASK );
|
||||||
|
|
||||||
int length;
|
int end = GetEndStyled();
|
||||||
length = ( maxLine ) ? GetLineEndPosition ( maxLine ) : documentLength;
|
length = ( maxLine ) ? GetLineEndPosition ( maxLine ) : length;
|
||||||
|
if ( length > end ) length = end;
|
||||||
SetStyling ( length, 0 );
|
SetStyling ( length, 0 );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue