diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/frame.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/frame.c b/src/frame.c index 1dc9f4f..8c6acc6 100644 --- a/src/frame.c +++ b/src/frame.c @@ -842,6 +842,8 @@ size_t pos_trail_to_offset(Paragraph *para, size_t offs, int trail) nrun = which_run(para, offs); run = ¶->runs[nrun]; + if ( para->type != PARA_TYPE_TEXT ) return 0; + if ( run == NULL ) { fprintf(stderr, "pos_trail_to_offset: No run\n"); return 0; |