From 11d4dd633fcaba140fc99533ab44667b7dd9b4b3 Mon Sep 17 00:00:00 2001 From: Marius Stanciu Date: Wed, 22 Jan 2020 01:08:35 +0200 Subject: [PATCH] - fixed a bug in the bounding box generation --- FlatCAMObj.py | 4 ++++ README.md | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/FlatCAMObj.py b/FlatCAMObj.py index 37a2d4bc..751063a7 100644 --- a/FlatCAMObj.py +++ b/FlatCAMObj.py @@ -1022,6 +1022,10 @@ class FlatCAMGerber(FlatCAMObj, Gerber): def geo_init(geo_obj, app_obj): assert isinstance(geo_obj, FlatCAMGeometry) + + if isinstance(self.solid_geometry, list): + self.solid_geometry = MultiPolygon(self.solid_geometry) + # Bounding box with rounded corners bounding_box = self.solid_geometry.envelope.buffer(float(self.options["bboxmargin"])) if not self.options["bboxrounded"]: # Remove rounded corners diff --git a/README.md b/README.md index da4e6eb1..8c96a14b 100644 --- a/README.md +++ b/README.md @@ -9,6 +9,10 @@ CAD program, and create G-Code for Isolation routing. ================================================= +22.01.2020 + +- fixed a bug in the bounding box generation + 19.01.2020 - fixed some bugs that are visible in Linux regarding the ArgsThread class: on app close we need to quit the QThread running the ArgsThread class and also close the opened Socket