diff options
author | Thomas White <taw@bitwiz.org.uk> | 2016-04-23 21:33:44 +0200 |
---|---|---|
committer | Thomas White <taw@bitwiz.org.uk> | 2016-04-23 21:33:44 +0200 |
commit | c35857b21e7626e2f8770e32ab2e19b8ba0b318e (patch) | |
tree | 710e428551000c5e4234c913ee9de1b511ae3091 /src | |
parent | 5cab149c59a13f7000acf6dfd909516ebeeb8f5e (diff) |
Insert text at end of chain of SCBlocks in new frame
Diffstat (limited to 'src')
-rw-r--r-- | src/sc_editor.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/sc_editor.c b/src/sc_editor.c index dcfd9fd..c1b2a22 100644 --- a/src/sc_editor.c +++ b/src/sc_editor.c @@ -813,6 +813,13 @@ static void check_paragraph(struct frame *fr, PangoContext *pc, { if ( fr->n_paras > 0 ) return; Paragraph *para = last_open_para(fr); + + /* We are creating the first paragraph. It uses the last SCBlock + * in the chain */ + while ( sc_block_next(scblocks) != NULL ) { + scblocks = sc_block_next(scblocks); + } + add_run(para, scblocks, 0, 0, fr->fontdesc, fr->col); wrap_paragraph(para, pc, fr->w - fr->pad_l - fr->pad_r); } |