diff options
author | Thomas White <taw@physics.org> | 2018-01-18 22:52:46 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2018-01-18 22:52:46 +0100 |
commit | 53830f66ca3cd8573340b4f43945aeedf60e5f5f (patch) | |
tree | ac9cf4a26b81a2af1c9a3152f4c9ed7c4c452607 /src/sc_editor.c | |
parent | e5caed8842c52b6cb1abfa4e9567174d8a920e75 (diff) |
Store macro contents block in text run
We need it in order to find where to delete from, e.g. when paragraphs
get united inside a slide title
Diffstat (limited to 'src/sc_editor.c')
-rw-r--r-- | src/sc_editor.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sc_editor.c b/src/sc_editor.c index f486598..bde5795 100644 --- a/src/sc_editor.c +++ b/src/sc_editor.c @@ -849,7 +849,7 @@ static void insert_text(char *t, SCEditor *e) fprintf(stderr, "Failed to insert paragraph\n"); return; } - add_run(pnew, ad, NULL, 0, strlen(t), + add_run(pnew, ad, NULL, NULL, 0, strlen(t), e->cursor_frame->fontdesc, e->cursor_frame->col); wrap_frame(e->cursor_frame, e->pc); @@ -1072,7 +1072,7 @@ static void check_paragraph(struct frame *fr, PangoContext *pc, } scblocks = sc_block_append(scblocks, NULL, NULL, strdup(""), NULL); - add_run(para, scblocks, NULL, 0, 0, fr->fontdesc, fr->col); + add_run(para, scblocks, NULL, NULL, 0, 0, fr->fontdesc, fr->col); wrap_paragraph(para, pc, fr->w - fr->pad_l - fr->pad_r, 0, 0); } |