Skip to content
Snippets Groups Projects
Verified Commit 0a4a4d54 authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

Fix some typos

parent 8e6ddbc9
No related branches found
No related tags found
No related merge requests found
...@@ -100,7 +100,7 @@ class IconifyIcon(IconifyOptional): ...@@ -100,7 +100,7 @@ class IconifyIcon(IconifyOptional):
transform = [] transform = []
if rotate is not None: 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(): if rotate.isnumeric():
deg = int(rotate) * 90 deg = int(rotate) * 90
elif rotate.endswith("deg"): elif rotate.endswith("deg"):
...@@ -108,7 +108,7 @@ class IconifyIcon(IconifyOptional): ...@@ -108,7 +108,7 @@ class IconifyIcon(IconifyOptional):
transform.append(f"rotate({deg} {center_x} {center_y})") transform.append(f"rotate({deg} {center_x} {center_y})")
if flip is not None: if flip is not None:
flip = flip.split(",") flip = flip.split(",")
translate_x, translate_y = 0 translate_x, translate_y = 0, 0
scale_x, scale_y = 1, 1 scale_x, scale_y = 1, 1
if "horizontal" in flip: if "horizontal" in flip:
translate_x = orig_width translate_x = orig_width
...@@ -116,7 +116,7 @@ class IconifyIcon(IconifyOptional): ...@@ -116,7 +116,7 @@ class IconifyIcon(IconifyOptional):
if "vertical" in flip: if "vertical" in flip:
translate_y = orig_height translate_y = orig_height
scale_y = -1 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})") transform.append(f"scale({scale_x} {scale_y})")
if transform: if transform:
transform = " ".join(transform) transform = " ".join(transform)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment