mirror of
https://github.com/processing/processing4.git
synced 2026-02-14 10:55:38 +01:00
adding experiment result
This commit is contained in:
@@ -187,11 +187,12 @@ public class ErrorBar extends JPanel {
|
||||
|
||||
// Each problem.getSourceLine() will have an extra line added
|
||||
// because of
|
||||
// class declaration in the beginning
|
||||
// class declaration in the beginning as well as default imports
|
||||
for (Problem problem : problems) {
|
||||
if (problem.tabIndex == currentTab) {
|
||||
// Ratio of error line to total lines
|
||||
float y = problem.lineNumber / ((float) totalLines);
|
||||
float y = (problem.lineNumber - errorCheckerService.defaultImportsOffset)
|
||||
/ ((float) totalLines);
|
||||
// Ratio multiplied by height of the error bar
|
||||
y *= fheight - 15; // -15 is just a vertical offset
|
||||
errorPoints.add(new ErrorMarker(problem, (int) y,
|
||||
|
||||
Reference in New Issue
Block a user