0003513: There is no check for boundary of array in method Set for array attributes

- Added check of array's boundary in Set(i, val) methods.
- Added comments to cdl files.
- removed accidental modification in TDataStd_ExtStringArray::Value(i).
- recovering accidentally lost modifications.
This commit is contained in:
szy
2013-08-07 19:27:29 +04:00
committed by bugmaster
parent 8263fcd384
commit fa13a85d92
11 changed files with 14 additions and 11 deletions

View File

@@ -79,6 +79,8 @@ Handle(TDataStd_ByteArray) TDataStd_ByteArray::Set(const TDF_Label& label,
void TDataStd_ByteArray::SetValue (const Standard_Integer index,
const Standard_Byte value)
{
if (myValue.IsNull())
return;
if (value == myValue->Value(index))
return;
Backup();