improving old code in Problem

This commit is contained in:
Manindra Moharana
2013-08-19 16:02:45 +05:30
parent 4d62508f9b
commit a8cd6d598b
4 changed files with 28 additions and 20 deletions

View File

@@ -311,7 +311,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().lineNumber == line + 1) {
if (emarker.getProblem().getLineNumber() == line + 1) {
notFound = false;
if (emarker.getType() == ErrorMarker.Warning) {
isWarning = true;