declicate +1 -1 changes

This commit is contained in:
Manindra Moharana
2014-06-11 03:06:38 +05:30
parent 82467dab9d
commit 0a0516d92f
2 changed files with 26 additions and 18 deletions

View File

@@ -319,7 +319,7 @@ public class TextAreaPainter extends processing.app.syntax.TextAreaPainter {
// Check if current line contains an error. If it does, find if it's an
// error or warning
for (ErrorMarker emarker : errorCheckerService.getEditor().errorBar.errorPoints) {
if (emarker.getProblem().getLineNumber() == line + 1) {
if (emarker.getProblem().getLineNumber() == line) {
notFound = false;
if (emarker.getType() == ErrorMarker.Warning) {
isWarning = true;