aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2017-03-02 22:43:37 +0100
committerThomas White <taw@bitwiz.org.uk>2017-03-02 22:46:45 +0100
commit4caa9d3984c8f1a50a9c787416ca5b6c73b6711a (patch)
tree67753ddabbcaa5014b37e0e0d66c3cedf54cc656
parentdad708df8d99f8f81f929818d9cbab9dc575ddae (diff)
Create a new SCBlock when we create the first paragraph in an empty frame
-rw-r--r--src/sc_editor.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/sc_editor.c b/src/sc_editor.c
index 844c053..ddaaedc 100644
--- a/src/sc_editor.c
+++ b/src/sc_editor.c
@@ -957,6 +957,7 @@ static void check_paragraph(struct frame *fr, PangoContext *pc,
while ( sc_block_next(scblocks) != NULL ) {
scblocks = sc_block_next(scblocks);
}
+ scblocks = sc_block_append(scblocks, NULL, NULL, strdup(""), NULL);
add_run(para, scblocks, NULL, 0, 0, fr->fontdesc, fr->col);
wrap_paragraph(para, pc, fr->w - fr->pad_l - fr->pad_r, 0, 0);