summaryrefslogtreecommitdiff
path: root/pango/pango-layout.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2021-08-04 22:21:04 +0000
committerMatthias Clasen <mclasen@redhat.com>2021-08-04 22:21:04 +0000
commit9552816ddad6b1d9f261e4e899c4813205a034f2 (patch)
tree313f55bf6eec8081ac07f417f0da088a01e3f21e /pango/pango-layout.c
parentbdfdadfa517e931138e42055472068b48f54ad14 (diff)
parentd53e5123b6fa797495af4f0cb5ceb69074278d8f (diff)
downloadpango-9552816ddad6b1d9f261e4e899c4813205a034f2.tar.gz
Merge branch 'fix-split-cursors-at-end' into 'main'
Add an old testcase See merge request GNOME/pango!386
Diffstat (limited to 'pango/pango-layout.c')
-rw-r--r--pango/pango-layout.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/pango/pango-layout.c b/pango/pango-layout.c
index 8303be2c..520782c5 100644
--- a/pango/pango-layout.c
+++ b/pango/pango-layout.c
@@ -2466,14 +2466,6 @@ pango_layout_get_cursor_pos (PangoLayout *layout,
else
x1_trailing = line_rect.width;
}
- else if (index >= layout_line->start_index + layout_line->length)
- {
- dir1 = layout_line->resolved_dir;
- if (layout_line->resolved_dir == PANGO_DIRECTION_LTR)
- x1_trailing = line_rect.width;
- else
- x1_trailing = 0;
- }
else
{
gint prev_index = g_utf8_prev_char (layout->text + index) - layout->text;