From 007f939731d3eceeb70f6e9814e234fc8235541d Mon Sep 17 00:00:00 2001 From: wmayer Date: Mon, 23 Feb 2015 16:05:17 +0100 Subject: [PATCH] + check for correct OCC version --- 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 ba544e419..9b22f119a 100644 --- a/src/Mod/Part/App/Geometry.cpp +++ b/src/Mod/Part/App/Geometry.cpp @@ -1154,7 +1154,7 @@ Base::Vector3d GeomEllipse::getMajorAxisDir() const */ void GeomEllipse::setMajorAxisDir(Base::Vector3d newdir) { -#if OCC_VERSION_HEX >= 0x060300 +#if OCC_VERSION_HEX >= 0x060504 if (newdir.Sqr() < Precision::SquareConfusion()) #else if (newdir.Length() < Precision::Confusion()) @@ -1483,7 +1483,7 @@ void GeomArcOfEllipse::setMajorAxisDir(Base::Vector3d newdir) { Handle_Geom_Ellipse c = Handle_Geom_Ellipse::DownCast( myCurve->BasisCurve() ); assert(!c.IsNull()); -#if OCC_VERSION_HEX >= 0x060300 +#if OCC_VERSION_HEX >= 0x060504 if (newdir.Sqr() < Precision::SquareConfusion()) #else if (newdir.Length() < Precision::Confusion())