Skip to content

Commit 36c6b93

Browse files
Christopher-Hermannmickaelistria
authored andcommitted
LineNumberRulerColumn consider LineSpacing for word wrapping
The LineNumberRulerColumn should consider the text widget's LineSpacing when word wrapping is enabled. Fixes #2668
1 parent b3aa5b0 commit 36c6b93

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

bundles/org.eclipse.jface.text/src/org/eclipse/jface/text/source/LineNumberRulerColumn.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -852,6 +852,7 @@ void doPaint(GC gc, ILineRange visibleLines) {
852852

853853
// use height of text bounding because bounds.width changes on word wrap
854854
y+= fCachedTextWidget.getTextBounds(offsetAtLine, offsetEnd).height;
855+
y+= fCachedTextWidget.getLineSpacing();
855856
}
856857
}
857858
}

0 commit comments

Comments
 (0)