diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/PerLine.cxx | 6 | 
1 files changed, 3 insertions, 3 deletions
| diff --git a/src/PerLine.cxx b/src/PerLine.cxx index 7bf892240..8b0dbc44b 100644 --- a/src/PerLine.cxx +++ b/src/PerLine.cxx @@ -370,9 +370,9 @@ void LineAnnotation::InsertLine(int line) {  }  void LineAnnotation::RemoveLine(int line) { -	if (annotations.Length() && (line < annotations.Length())) { -		delete []annotations[line]; -		annotations.Delete(line); +	if (annotations.Length() && (line > 0) && (line <= annotations.Length())) { +		delete []annotations[line-1]; +		annotations.Delete(line-1);  	}  } | 
