summaryrefslogtreecommitdiff
path: root/gerbonara/gerber/render/rs274x_backend.py
diff options
context:
space:
mode:
Diffstat (limited to 'gerbonara/gerber/render/rs274x_backend.py')
-rw-r--r--gerbonara/gerber/render/rs274x_backend.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/gerbonara/gerber/render/rs274x_backend.py b/gerbonara/gerber/render/rs274x_backend.py
index c7af2ea..bf9f164 100644
--- a/gerbonara/gerber/render/rs274x_backend.py
+++ b/gerbonara/gerber/render/rs274x_backend.py
@@ -408,8 +408,8 @@ class Rs274xContext(GerberContext):
hash += primitive.__class__.__name__[0]
bbox = primitive.bounding_box
- hash += str((bbox[0][1] - bbox[0][0]) * 100000)[0:2]
- hash += str((bbox[1][1] - bbox[1][0]) * 100000)[0:2]
+ hash += str((bbox[1][0] - bbox[0][0]) * 100000)[0:2]
+ hash += str((bbox[1][1] - bbox[0][1]) * 100000)[0:2]
if hasattr(primitive, 'primitives'):
hash += str(len(primitive.primitives))