Skip to content

Commit 1b5a78c

Browse files
authored
Fixes #1284 - JavaFX25 introduced getCaretShape to replace caretShape to fix (#1285)
1 parent 40fc429 commit 1b5a78c

2 files changed

Lines changed: 1 addition & 5 deletions

File tree

richtextfx/src/main/java/org/fxmisc/richtext/ParagraphText.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ private void updateAllCaretShapes() {
328328
}
329329

330330
private void updateSingleCaret(CaretNode caretNode) {
331-
PathElement[] shape = getCaretShape(getClampedCaretPosition(caretNode), true);
331+
PathElement[] shape = caretShape(getClampedCaretPosition(caretNode), true);
332332
caretNode.getElements().setAll(shape);
333333
}
334334

richtextfx/src/main/java/org/fxmisc/richtext/TextFlowExt.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,6 @@ int getLineOfCharacter(int charIdx) {
5252
return navigator.offsetToPosition(charIdx, Forward).getMajor();
5353
}
5454

55-
PathElement[] getCaretShape(int charIdx, boolean isLeading) {
56-
return caretShape(charIdx, isLeading);
57-
}
58-
5955
PathElement[] getRangeShape(IndexRange range) {
6056
return getRangeShape(range.getStart(), range.getEnd());
6157
}

0 commit comments

Comments
 (0)