]> mj.ucw.cz Git - paperjam.git/commitdiff
Fix rotate command
authorMartin Mares <mj@ucw.cz>
Tue, 10 Apr 2018 11:30:56 +0000 (13:30 +0200)
committerMartin Mares <mj@ucw.cz>
Tue, 10 Apr 2018 11:30:56 +0000 (13:30 +0200)
cmds.cc

diff --git a/cmds.cc b/cmds.cc
index 11c46482aa960a116209d2e67a31f6ccd1a011e3..73daa4cbc4211419c3a939f11a8e833c9c5b8d08 100644 (file)
--- a/cmds.cc
+++ b/cmds.cc
@@ -470,7 +470,7 @@ class rotate_cmd : public cmd_exec_simple {
 public:
   rotate_cmd(cmd *c)
     {
-      deg = c->arg("deg")->as_int(0) % 360;
+      deg = c->arg("angle")->as_int(0) % 360;
       if (deg < 0)
        deg += 360;
       if (deg % 90)