Skip to content

Commit ac4f037

Browse files
fix CodeMiningLineHeaderAnnotation#getMultilineHeight
it should never return 0. Fix race condition when code minings are not yet available. #2786
1 parent c9f129d commit ac4f037

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

bundles/org.eclipse.jface.text/src/org/eclipse/jface/internal/text/codemining/CodeMiningLineHeaderAnnotation.java

+3
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,9 @@ private int getMultilineHeight(GC gc) {
121121
}
122122
ignoreFirstLine= true;
123123
}
124+
if (sumLineHeight == 0) {
125+
return super.getHeight();
126+
}
124127
if (gc != null) {
125128
return sumLineHeight;
126129
} else {

0 commit comments

Comments
 (0)