Skip to content

Commit

Permalink
+ GFA is available since OCC 6.9.0, raise an AttributeError otherwise
Browse files Browse the repository at this point in the history
  • Loading branch information
wwmayer committed Jul 14, 2016
1 parent 6dc1a93 commit bdb359d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Mod/Part/App/TopoShape.cpp
Expand Up @@ -1514,8 +1514,8 @@ TopoDS_Shape TopoShape::generalFuse(const std::vector<TopoDS_Shape> &sOthers, St
{
if (this->_Shape.IsNull())
Standard_Failure::Raise("Base shape is null");
#if OCC_VERSION_HEX <= 0x060900
throw Base::Exception("GFA is available only in OCC 6.9.0 and up.");
#if OCC_VERSION_HEX < 0x060900
throw Base::AttributeError("GFA is available only in OCC 6.9.0 and up.");
#else
BRepAlgoAPI_BuilderAlgo mkGFA;
TopTools_ListOfShape GFAArguments;
Expand Down

0 comments on commit bdb359d

Please sign in to comment.