From a80ac6199a0b3bcb0b014a9709626754bfae0e8a Mon Sep 17 00:00:00 2001 From: Jan Petykiewicz Date: Thu, 10 Sep 2020 19:54:03 -0700 Subject: [PATCH] Record type 17 (Placement) should not allow modal angle or magnification --- fatamorgana/records.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fatamorgana/records.py b/fatamorgana/records.py index 4741cfb..45ab6ef 100644 --- a/fatamorgana/records.py +++ b/fatamorgana/records.py @@ -1404,9 +1404,9 @@ class Placement(Record): r = self.repetition is not None f = self.flip - if ((self.magnification is None or self.magnification == 1) and - ((self.angle is None or abs(self.angle % 90.0) < 1e-14))): - aa = int((self.angle / 90) % 4.0) # type: ignore + if (self.magnification == 1 and + self.angle is not None and abs(self.angle % 90.0) < 1e-14): + aa = int((self.angle / 90) % 4.0) bools = (c, n, x, y, r, aa & 0b10, aa & 0b01, f) m = False a = False