diff options
Diffstat (limited to 'render')
-rw-r--r-- | render/box.c | 1 | ||||
-rw-r--r-- | render/loosen.c | 9 |
2 files changed, 2 insertions, 8 deletions
diff --git a/render/box.c b/render/box.c index e6495174e..d248f60d4 100644 --- a/render/box.c +++ b/render/box.c @@ -677,7 +677,6 @@ struct box* box_duplicate_tree(struct box *root, struct content *c) { struct box *new_root;/**< Root of the new box tree*/ int box_number = 0; - struct box *old_addr, *new_addr; struct box_dict_element *box_dict, *box_dict_end; /* 1. Duplicate parent - children structure, list_markers*/ diff --git a/render/loosen.c b/render/loosen.c index 5686d5a3b..a6f3053ff 100644 --- a/render/loosen.c +++ b/render/loosen.c @@ -23,6 +23,7 @@ #include "render/box.h" #include "render/font.h" +#include "render/loosen.h" #include "utils/log.h" #include "utils/talloc.h" @@ -174,11 +175,8 @@ bool loosen_text(struct box *text, int width, struct content *content) */ bool loosen_table(struct box *table, int width, struct content *content) { - struct box *row_group, *row, *cell, *br, *prev, *inline_container; - unsigned int row_sum; - bool first_cell_in_row; - + if (table->min_width <= width) return true; @@ -292,7 +290,6 @@ bool loosen_all_first_pass(struct box *box, int width, int cx, struct content *content) { struct box* c; - int got_width; int x; for (c = box->children; c ; c = c->next) { @@ -342,7 +339,6 @@ bool loosen_all_second_pass(struct box *box, int width, int cx, struct content *content) { struct box *c; - int got_width; int x; for (c = box->children; c; c = c->next) { @@ -378,7 +374,6 @@ bool loosen_all_third_pass(struct box *box, int width, int cx, struct content *content) { struct box *c; - int got_width; int x; for (c = box->children; c; c = c->next) { |