1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-09 13:22:24 +03:00

0025176: STEP Reader - no error report if referenced entity has wrong type.

Interface_CheckTool does not reset the Check added to CheckList now.

Added test case bugs/xde/bug25176

Update reference data in test cases.

Resolving conflicts:
	tests/de/iges_3/A4
	tests/de/step_1/R7
	tests/de/step_2/H1
This commit is contained in:
akz
2015-02-12 11:36:07 +03:00
committed by bugmaster
parent eea55df528
commit b8f2022f8c
145 changed files with 307 additions and 270 deletions

View File

@@ -267,18 +267,18 @@ Interface_CheckIterator Interface_CheckTool::CompleteCheckList ()
try {
OCC_CATCH_SIGNALS
for (i = n0; i <= nb; i ++) {
ach->Clear();
ent = model->Value(i);
ach->SetEntity(ent);
if (model->IsReportEntity(i)) {
ach = model->ReportEntity(i)->Check(); // INCLUT Unknown
if (ach->HasFailed()) // FAIL : pas de Check semantique
{ res.Add(ach,i); thestat |= 12; continue; }
}
if (!model->HasSemanticChecks()) FillCheck(ent,theshare,ach);
else ach->GetMessages (model->Check (i,Standard_False));
if (ach->HasFailed() || ach->HasWarnings())
{ res.Add(ach,i); if (ach->HasFailed()) thestat |= 12; }
ach->Clear();
ent = model->Value(i);
ach->SetEntity(ent);
if (model->IsReportEntity(i)) {
ach = model->ReportEntity(i)->Check(); // INCLUT Unknown
if (ach->HasFailed()) // FAIL : pas de Check semantique
{ res.Add(ach,i); ach = new Interface_Check; thestat |= 12; continue; }
}
if (!model->HasSemanticChecks()) FillCheck(ent,theshare,ach);
else ach->GetMessages (model->Check (i,Standard_False));
if (ach->HasFailed() || ach->HasWarnings())
{ res.Add(ach,i); ach = new Interface_Check; if (ach->HasFailed()) thestat |= 12; }
}
n0 = nb+1;
}