From: Martin Mares Date: Wed, 4 Apr 2018 22:19:52 +0000 (+0200) Subject: Minor fixes and TODOs for nup X-Git-Tag: v0.1~20 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=3558a1cc753d2b0e62dadc17ddc1abc23b033c45;p=paperjam.git Minor fixes and TODOs for nup --- diff --git a/TODO b/TODO index 611462b..b6009ca 100644 --- a/TODO +++ b/TODO @@ -4,6 +4,8 @@ - page->index: use or remove - rename page->bbox to page->image_box? - "-f" switch +- nup(crop): take max of all bboxes first? +- nup: apply pos to placement of images in tiles | # Position bbox on a new paper | paper("a4") diff --git a/cmds.cc b/cmds.cc index 7157a05..4e101b4 100644 --- a/cmds.cc +++ b/cmds.cc @@ -988,7 +988,8 @@ void nup_cmd::find_config(vector &in, BBox *page_boxes) st.tile_w = max(st.tile_w, page_boxes[i].width()); st.tile_h = max(st.tile_h, page_boxes[i].height()); } - debug("NUP: %d tiles of size %.3f x %.3f", num_tiles, st.tile_w, st.tile_h); + debug("NUP: %d tiles of size [%.3f,%.3f]", num_tiles, st.tile_w, st.tile_h); + debug_indent += 4; // Try all possible configurations of tiles found_solution = false; @@ -1045,6 +1046,7 @@ void nup_cmd::find_config(vector &in, BBox *page_boxes) } } + debug_indent -= 4; if (!found_solution) die("Nup did not find a feasible solution"); }