Record type 17 (Placement) should not allow modal angle or magnification
This commit is contained in:
		
							parent
							
								
									97f2bb1238
								
							
						
					
					
						commit
						a80ac6199a
					
				@ -1404,9 +1404,9 @@ class Placement(Record):
 | 
				
			|||||||
        r = self.repetition is not None
 | 
					        r = self.repetition is not None
 | 
				
			||||||
        f = self.flip
 | 
					        f = self.flip
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        if ((self.magnification is None or self.magnification == 1) and
 | 
					        if (self.magnification == 1 and
 | 
				
			||||||
                ((self.angle is None or abs(self.angle % 90.0) < 1e-14))):
 | 
					               self.angle is not None and abs(self.angle % 90.0) < 1e-14):
 | 
				
			||||||
            aa = int((self.angle / 90) % 4.0)                 # type: ignore
 | 
					            aa = int((self.angle / 90) % 4.0)
 | 
				
			||||||
            bools = (c, n, x, y, r, aa & 0b10, aa & 0b01, f)
 | 
					            bools = (c, n, x, y, r, aa & 0b10, aa & 0b01, f)
 | 
				
			||||||
            m = False
 | 
					            m = False
 | 
				
			||||||
            a = False
 | 
					            a = False
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user