]> Repositories - hackapet/Adafruit_Blinka_Displayio.git/blobdiff - displayio/_area.py
Fixes for issue #158
[hackapet/Adafruit_Blinka_Displayio.git] / displayio / _area.py
index f7272dd747bf25ae79ca94987ce278f0914b797a..0b3dd80b8b5a908dcca61630a00732d5a2776b20 100644 (file)
@@ -87,10 +87,10 @@ class Area:
     def union(self, other, union):
         """Combine this area along with another into union"""
         if self.empty():
-            self.copy_into(union)
+            other.copy_into(union)
             return
         if other.empty():
-            other.copy_into(union)
+            self.copy_into(union)
             return
 
         union.x1 = min(self.x1, other.x1)