From 6f65dcfc3e7bef68077f5e9c97aabeb3f0b82961 Mon Sep 17 00:00:00 2001 From: Timo Heister Date: Wed, 25 Feb 2015 08:40:53 -0500 Subject: [PATCH] fix error in opencascade assert --- source/opencascade/utilities.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) -- 2.39.5