From 72d873ef3a2abac823a3ff44f78c8dfb54c7ec52 Mon Sep 17 00:00:00 2001 From: Pawel Kowalski Date: Fri, 10 Aug 2012 10:45:42 +0400 Subject: [PATCH] 0023294: Identical sub-expression in 'if-clause' Correcting probable copy-paste bug. Test case offset shape_type_i D7 was modified --- src/BOP/BOP_ArgumentAnalyzer.cxx | 2 +- tests/offset/shape_type_i/D7 | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/BOP/BOP_ArgumentAnalyzer.cxx b/src/BOP/BOP_ArgumentAnalyzer.cxx index 5c7380901c..e0e155982e 100755 --- a/src/BOP/BOP_ArgumentAnalyzer.cxx +++ b/src/BOP/BOP_ArgumentAnalyzer.cxx @@ -928,7 +928,7 @@ Standard_Boolean TestSubShapeType(const TopAbs_ShapeEnum theT1, } } if((aT1==TopAbs_WIRE && aT2==TopAbs_SHELL) || - (aT1==TopAbs_WIRE && aT2==TopAbs_SHELL)) { + (aT2==TopAbs_WIRE && aT1==TopAbs_SHELL)) { if(!BOP_WireShell::CheckArgTypes(aT1,aT2,theOP)) { return Standard_False; } diff --git a/tests/offset/shape_type_i/D7 b/tests/offset/shape_type_i/D7 index fa221d1f40..39e55621b9 100644 --- a/tests/offset/shape_type_i/D7 +++ b/tests/offset/shape_type_i/D7 @@ -1,5 +1,6 @@ puts "TODO OCC23068 Mandriva2010: Error: bsection of result and s is not equal zero" puts "TODO OCC23068 Mandriva2010: Error : The volume of result shape " +puts "TODO ?OCC23068 Mandriva2010: Faulty shapes in variables faulty_1 to faulty_2" ellipse w1 0 0 0 15 10 mkedge w1 w1 0 pi/2 trotate w1 0 0 0 1 0 0 90