From 2a7ea65f10962f86dedfac00367aa1124c19496d Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Tue, 10 Apr 2018 13:30:56 +0200 Subject: [PATCH] Fix rotate command --- cmds.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmds.cc b/cmds.cc index 11c4648..73daa4c 100644 --- 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) -- 2.39.5