mirror of
https://github.com/processing/processing4.git
synced 2026-01-27 02:11:08 +01:00
Hold on fix for #752.
This commit is contained in:
@@ -326,7 +326,7 @@ public class PdeTextAreaPainter extends TextAreaPainter {
|
||||
public String getToolTipText(MouseEvent event) {
|
||||
fontMetrics = getFontMetrics();
|
||||
int line = event.getY() / fontMetrics.getHeight() + textArea.getFirstLine();
|
||||
if (line >= 0 || line < textArea.getLineCount()) {
|
||||
if (line >= 0 || line < textArea.getLineCount()) {getPreprocessIssues
|
||||
List<Problem> problems = getEditor().findProblems(line);
|
||||
for (Problem problem : problems) {
|
||||
int lineStart = textArea.getLineStartOffset(line);
|
||||
@@ -338,6 +338,8 @@ public class PdeTextAreaPainter extends TextAreaPainter {
|
||||
int startOffset = Math.max(errorStart, lineStart) - lineStart;
|
||||
int stopOffset = Math.min(errorEnd, lineEnd) - lineStart;
|
||||
|
||||
System.out.println(lineStart + "\t" + lineEnd + "\t" + errorStart + "\t" + errorEnd + "\t" + startOffset + "\t" + stopOffset);
|
||||
|
||||
int x = event.getX();
|
||||
|
||||
if (x >= textArea.offsetToX(line, startOffset) &&
|
||||
|
||||
@@ -52,9 +52,8 @@ public class ProblemFactory {
|
||||
tab,
|
||||
localLine,
|
||||
message,
|
||||
lineStart,
|
||||
lineStop,
|
||||
false
|
||||
0,
|
||||
lineStop - lineStart
|
||||
);
|
||||
}
|
||||
|
||||
@@ -85,8 +84,7 @@ public class ProblemFactory {
|
||||
localLine,
|
||||
message,
|
||||
0,
|
||||
col,
|
||||
true
|
||||
col
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user