[SCM] OCE packaging branch, debian, updated. debian/0.11-1
tpaviot
tpaviot at gmail.com
Thu Dec 13 19:16:21 UTC 2012
The following commit has been merged in the debian branch:
commit d0d3998bc0e58245569bf65118076379fde0cafc
Author: tpaviot <tpaviot at gmail.com>
Date: Sun Jun 3 17:36:07 2012 +0200
Bugfix: test does not work as expected because of missing parentheses
This bugfix had been reported by clang: logical-op-parentheses
It is clear by reading comments about OffsetType and TaperedOffsetType
methods in inc/IGESGeom_OffsetCurve.hxx that the previous behavior
was wrong.
diff --git a/src/IGESGeom/IGESGeom_ToolOffsetCurve.cxx b/src/IGESGeom/IGESGeom_ToolOffsetCurve.cxx
index 5a0d8af..2a079bc 100644
--- a/src/IGESGeom/IGESGeom_ToolOffsetCurve.cxx
+++ b/src/IGESGeom/IGESGeom_ToolOffsetCurve.cxx
@@ -330,8 +330,8 @@ void IGESGeom_ToolOffsetCurve::OwnCheck(const Handle(IGESGeom_OffsetCurve)& ent,
if (ot == 3 && (ent->FunctionParameter() < 1 || ent->FunctionParameter() > 3))
ach.SendFail("Offset Function Parameter != 1-2 or 3 (rq : for X-Y or Z)");
*/
- if (ot !=1 && //:l9 abv 15.01.99: CTS22023 and TEC0278: only if ot is function
- (ent->TaperedOffsetType() < 1) || (ent->TaperedOffsetType() > 2)) {
+ if ((ot !=1) && //:l9 abv 15.01.99: CTS22023 and TEC0278: only if ot is function
+ ((ent->TaperedOffsetType() < 1) || (ent->TaperedOffsetType() > 2))) {
Message_Msg Msg114("XSTEP_114");
ach->SendFail(Msg114);
}
--
OCE packaging
More information about the debian-science-commits
mailing list