From 0a4a4d546552240a8153364d459303e4b74b5a20 Mon Sep 17 00:00:00 2001
From: Dominik George <dominik.george@teckids.org>
Date: Mon, 15 Feb 2021 23:14:08 +0100
Subject: [PATCH] Fix some typos

---
 dj_iconify/types.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/dj_iconify/types.py b/dj_iconify/types.py
index 5938203..ae66d5c 100644
--- a/dj_iconify/types.py
+++ b/dj_iconify/types.py
@@ -100,7 +100,7 @@ class IconifyIcon(IconifyOptional):
 
         transform = []
         if rotate is not None:
-            center_x, center_y = int(self.width / 2), int(self.height / 2)
+            center_x, center_y = int(orig_width / 2), int(orig_height / 2)
             if rotate.isnumeric():
                 deg = int(rotate) * 90
             elif rotate.endswith("deg"):
@@ -108,7 +108,7 @@ class IconifyIcon(IconifyOptional):
             transform.append(f"rotate({deg} {center_x} {center_y})")
         if flip is not None:
             flip = flip.split(",")
-            translate_x, translate_y = 0
+            translate_x, translate_y = 0, 0
             scale_x, scale_y = 1, 1
             if "horizontal" in flip:
                 translate_x = orig_width
@@ -116,7 +116,7 @@ class IconifyIcon(IconifyOptional):
             if "vertical" in flip:
                 translate_y = orig_height
                 scale_y = -1
-            transform.append(f"translate({translate_x} {translate_z})")
+            transform.append(f"translate({translate_x} {translate_y})")
             transform.append(f"scale({scale_x} {scale_y})")
         if transform:
             transform = " ".join(transform)
-- 
GitLab