From: Timo Heister Date: Wed, 25 Feb 2015 13:40:53 +0000 (-0500) Subject: fix error in opencascade assert X-Git-Tag: v8.3.0-rc1~418^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F601%2Fhead;p=dealii.git fix error in opencascade assert --- diff --git a/source/opencascade/utilities.cc b/source/opencascade/utilities.cc index 7b76e7a15e..9b3e93c86c 100644 --- a/source/opencascade/utilities.cc +++ b/source/opencascade/utilities.cc @@ -260,11 +260,11 @@ namespace OpenCASCADE STEPControl_Writer SCW; IFSelect_ReturnStatus status; status = SCW.Transfer(shape, STEPControl_AsIs); - AssertThrow(status = IFSelect_RetDone, ExcMessage("Failed to add shape to STEP controller.")); + AssertThrow(status == IFSelect_RetDone, ExcMessage("Failed to add shape to STEP controller.")); status = SCW.Write(filename.c_str()); - AssertThrow(status = IFSelect_RetDone, ExcMessage("Failed to write translated shape to STEP file.")); + AssertThrow(status == IFSelect_RetDone, ExcMessage("Failed to write translated shape to STEP file.")); } double get_shape_tolerance(const TopoDS_Shape &shape)