From 3d8fceaa8794ff2c5d01ca79e920db8146d729f8 Mon Sep 17 00:00:00 2001 From: cxl Date: Mon, 18 Feb 2013 15:32:46 +0000 Subject: [PATCH] CodeEditor: fixed issue with EditorBar::ClearErrors git-svn-id: svn://ultimatepp.org/upp/trunk@5825 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- uppsrc/CodeEditor/EditorBar.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/uppsrc/CodeEditor/EditorBar.cpp b/uppsrc/CodeEditor/EditorBar.cpp index 9a05fd586..79fb3d19a 100644 --- a/uppsrc/CodeEditor/EditorBar.cpp +++ b/uppsrc/CodeEditor/EditorBar.cpp @@ -422,6 +422,9 @@ void EditorBar::ClearErrors(int line) line = 0; count = li.GetCount(); } + else + if(line >= li.GetCount()) + return; else count = line + 1;