Fix for incorrect error file selection with more than 2 tabs

This commit is contained in:
francisli
2011-10-17 04:41:03 +00:00
parent 9633ec7424
commit 7dd9c1066f

View File

@@ -508,7 +508,7 @@ public class JavaBuild {
protected int findErrorFile(int errorLine) {
for (int i = 1; i < sketch.getCodeCount(); i++) {
for (int i = sketch.getCodeCount() - 1; i > 0; i--) {
SketchCode sc = sketch.getCode(i);
if (sc.isExtension("pde") && (sc.getPreprocOffset() < errorLine)) {
// keep looping until the errorLine is past the offset
@@ -1611,4 +1611,5 @@ public class JavaBuild {
}
}
}
}
}