aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2014-09-23 23:01:16 +0200
committerThomas White <taw@bitwiz.org.uk>2014-09-23 23:01:16 +0200
commitbc848e7d290656926337396622af68fffe10f0b2 (patch)
treef1139ba97fc487c915d8961c5ab507ae7163bf9b
parentf85f70bf722314ef22c881b6b755e1ea3443f9f7 (diff)
Show filename for image boxes
-rw-r--r--src/wrap.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/wrap.c b/src/wrap.c
index b80b580..a55182c 100644
--- a/src/wrap.c
+++ b/src/wrap.c
@@ -881,6 +881,8 @@ void show_boxes(struct wrap_line *boxes)
const char *block_text = sc_block_contents(box->scblock);
box_text = g_utf8_offset_to_pointer(block_text,
box->offs_char);
+ } else if ( box->type == WRAP_BOX_IMAGE ) {
+ box_text = box->filename;
} else {
box_text = NULL;
}