diff options
Diffstat (limited to 'src/wrap.c')
-rw-r--r-- | src/wrap.c | 7 |
1 files changed, 2 insertions, 5 deletions
@@ -803,7 +803,7 @@ void show_boxes(struct wrap_line *boxes) /* Wrap the StoryCode inside "fr->sc" so that it fits within width "fr->w", * and generate fr->lines */ -int wrap_contents(struct frame *fr, struct wrap_line *boxes) +int wrap_contents(struct frame *fr) { struct wrap_line *para; int i; @@ -821,7 +821,7 @@ int wrap_contents(struct frame *fr, struct wrap_line *boxes) i = 0; do { - para = split_paragraph(boxes, &i); + para = split_paragraph(fr->boxes, &i); /* Split paragraphs into lines */ if ( para != NULL ) { @@ -835,9 +835,6 @@ int wrap_contents(struct frame *fr, struct wrap_line *boxes) } while ( para != NULL ); - free(boxes->boxes); - free(boxes); - for ( i=0; i<fr->n_lines; i++ ) { distribute_spaces(&fr->lines[i], wrap_w, rho); calc_line_geometry(&fr->lines[i]); |