aboutsummaryrefslogtreecommitdiff
path: root/libstorycode/narrative_render_cairo.c
diff options
context:
space:
mode:
Diffstat (limited to 'libstorycode/narrative_render_cairo.c')
-rw-r--r--libstorycode/narrative_render_cairo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libstorycode/narrative_render_cairo.c b/libstorycode/narrative_render_cairo.c
index 9faacf7..53011cd 100644
--- a/libstorycode/narrative_render_cairo.c
+++ b/libstorycode/narrative_render_cairo.c
@@ -206,7 +206,7 @@ size_t narrative_pos_trail_to_offset(Narrative *n, int i, int offs, int trail)
pos = 0;
for ( run=0; run<item->n_runs; run++ ) {
pos += strlen(item->runs[run].text);
- if ( pos > offs ) {
+ if ( pos >= offs ) {
glong char_offs;
char *ptr;
char_offs = g_utf8_pointer_to_offset(item->runs[run].text,