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

0028428: BinMNaming_NamedShapeDriver fails if there are no nodes in NamedShape

Unit test and additional parsing rule for tests are added as well as a minor fix of the draw command for bug24164_2 unit test (in reference array it was impossible to set only one value).

Added the exception for the checking in issue 2269, when bad document is read.

It checks that there is no crash, but just an error message. If crash is appeared, this test will not skipped anyway.

Correction of test for bug2269 and parse.rules
This commit is contained in:
mpv
2017-02-02 18:31:59 +03:00
committed by bugmaster
parent e44b0af456
commit 6d1e872b4d
6 changed files with 27 additions and 9 deletions

View File

@@ -3699,7 +3699,7 @@ static Standard_Integer DDataStd_SetRefArray (Draw_Interpretor& di,
Handle(TDataStd_ReferenceArray) A = TDataStd_ReferenceArray::Set(label, From, To);
if (nb > 6) {
if (nb >= 6) {
j = 5;
for(Standard_Integer i = From; i<=To; i++) {
TDF_Label aRefLabel;