diff --git a/src/xmlctrl.cpp b/src/xmlctrl.cpp index 6d8b5eb..7c4bede 100755 --- a/src/xmlctrl.cpp +++ b/src/xmlctrl.cpp @@ -2113,7 +2113,7 @@ void XmlCtrl::setErrorIndicator ( int line, int column ) void XmlCtrl::clearErrorIndicators ( int maxLine ) { - if ( maxLine < 1 ) + if ( maxLine < 0 ) return; int documentLength = GetLength();