]> mj.ucw.cz Git - paperjam.git/commitdiff
Minor fixes and TODOs for nup
authorMartin Mares <mj@ucw.cz>
Wed, 4 Apr 2018 22:19:52 +0000 (00:19 +0200)
committerMartin Mares <mj@ucw.cz>
Wed, 4 Apr 2018 22:19:52 +0000 (00:19 +0200)
TODO
cmds.cc

diff --git a/TODO b/TODO
index 611462bf0c184967f45ecc3a876feafaf202b106..b6009ca2b7f2f49dfa902f80ab1def75cabeb67d 100644 (file)
--- 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 7157a05ec67cdfd344debde9e9ff6b4be8a3f844..4e101b4fad605f13eb07fed4e993eb40cef7d495 100644 (file)
--- a/cmds.cc
+++ b/cmds.cc
@@ -988,7 +988,8 @@ void nup_cmd::find_config(vector<page *> &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<page *> &in, BBox *page_boxes)
        }
     }
 
+  debug_indent -= 4;
   if (!found_solution)
     die("Nup did not find a feasible solution");
 }