diff --git a/conanfile.py b/conanfile.py index 6c0fe885b4..251083b01f 100644 --- a/conanfile.py +++ b/conanfile.py @@ -152,6 +152,7 @@ def generate(self): folder_dists.append("tests") if self.options.enable_benchmarks: folder_dists.append("benchmark") + folder_dists.append("stress_benchmark") for dist_folder in folder_dists: dist_path = path.join(self.build_folder, dist_folder) diff --git a/include/utils/polygon.h b/include/utils/polygon.h index 86f9a7aa22..e83c2a9275 100644 --- a/include/utils/polygon.h +++ b/include/utils/polygon.h @@ -1552,7 +1552,10 @@ class PolygonsPart : public Polygons } ConstPolygonRef outerPolygon() const { - return paths[0]; + if (! paths.empty()) + { + return paths[0]; + } } /*!