mirror of
https://github.com/processing/processing4.git
synced 2026-02-13 02:20:45 +01:00
Fix for incorrect error file selection with more than 2 tabs
This commit is contained in:
@@ -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 {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user