diff options
author | Thomas White <taw@bitwiz.me.uk> | 2018-11-11 22:03:17 +0100 |
---|---|---|
committer | Thomas White <taw@bitwiz.me.uk> | 2018-11-11 22:03:17 +0100 |
commit | 7bb94198e8c9fd2559bb04894f1ea53e9f681b63 (patch) | |
tree | d238a3991cb1670444b041086bac0dd01c8bd043 /src | |
parent | 738715858a0ca28ce4a85e0b556e09368e96cdf0 (diff) |
Use fontdesc from previous run when splitting
Diffstat (limited to 'src')
-rw-r--r-- | src/frame.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/frame.c b/src/frame.c index 794d49e..9a68269 100644 --- a/src/frame.c +++ b/src/frame.c @@ -1623,7 +1623,7 @@ static SCBlock *split_text_paragraph(struct frame *fr, int pn, size_t pos, end = sc_block_append(np, NULL, NULL, strdup(""), NULL); pnew->n_runs = 0; - add_run(pnew, end, fr->fontdesc, fr->col, NULL); + add_run(pnew, end, rr->fontdesc, rr->col, NULL); pnew->scblock = end; wrap_paragraph(pnew, pc, fr->w - fr->pad_l - fr->pad_r, 0, 0); |