From 396998467b0f708c8f778d851cf5105f71fff4d4 Mon Sep 17 00:00:00 2001 From: Abdullah Tahiri Date: Sun, 21 Oct 2018 05:58:43 +0200 Subject: [PATCH] Part: Geometry intersect routines throw when OCCT throws --- src/Mod/Part/App/Geometry.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Mod/Part/App/Geometry.cpp b/src/Mod/Part/App/Geometry.cpp index f2195774ac..096332bf84 100644 --- a/src/Mod/Part/App/Geometry.cpp +++ b/src/Mod/Part/App/Geometry.cpp @@ -482,7 +482,7 @@ bool GeomCurve::intersect( GeomCurve * c, return false; } catch (Standard_Failure& e) { - return false; + throw Base::RuntimeError(e.GetMessageString()); } } @@ -1518,7 +1518,7 @@ bool GeomTrimmedCurve::intersectBasisCurves( const GeomTrimmedCurve * c, return false; } catch (Standard_Failure& e) { - return false; + throw Base::RuntimeError(e.GetMessageString()); } }