From 1d97367e30546dbdc5f5504b0be4c917681f1108 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joachim=20Sch=C3=B6berl?= Date: Tue, 2 Jun 2020 08:51:51 +0200 Subject: [PATCH] check OCC-Version of HasErrors --- libsrc/occ/occgeom.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libsrc/occ/occgeom.cpp b/libsrc/occ/occgeom.cpp index 5328bd03..abee8107 100644 --- a/libsrc/occ/occgeom.cpp +++ b/libsrc/occ/occgeom.cpp @@ -236,6 +236,7 @@ namespace netgen // Perform the operation aBuilder.Perform(); // Check for the errors +#if OCC_VERSION_HEX >= 0x070000 if (aBuilder.HasErrors()) { cout << "builder has errors" << endl; @@ -247,6 +248,7 @@ namespace netgen // treatment of the warnings ; } +#endif // result of the operation shape = aBuilder.Shape(); BuildFMap();