]> mj.ucw.cz Git - paperjam.git/commitdiff
Top and bottom margins were swapped
authorMartin Mares <mj@ucw.cz>
Mon, 9 Jul 2018 07:57:06 +0000 (09:57 +0200)
committerMartin Mares <mj@ucw.cz>
Mon, 9 Jul 2018 07:57:06 +0000 (09:57 +0200)
cmds.cc

diff --git a/cmds.cc b/cmds.cc
index 97c24d58ab1d92bfa788c9563b0af1b909447d02..7d0f9b659d934323bd02ef1b336c1811990867b6 100644 (file)
--- a/cmds.cc
+++ b/cmds.cc
@@ -204,8 +204,8 @@ public:
     {
       bb->x_min += l;
       bb->x_max -= r;
-      bb->y_min += b;
-      bb->y_max -= t;
+      bb->y_min += t;
+      bb->y_max -= b;
       if (bb->x_min >= bb->x_max || bb->y_min >= bb->y_max)
        err("Margins cannot be larger than the whole page");
     }
@@ -213,8 +213,8 @@ public:
     {
       bb->x_min -= l;
       bb->x_max += r;
-      bb->y_min -= b;
-      bb->y_max += t;
+      bb->y_min -= t;
+      bb->y_max += b;
     }
 };