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

0025317: Failure on attempt to save an Ocaf document with a long double array attribute in a Xml file

A draw-command SetRealArrayValue. It is necessary to reproduce the crash.
A fix + some additional draw-commands
Test cases for issue CR25317
This commit is contained in:
vro
2014-10-16 15:01:33 +04:00
committed by bugmaster
parent 7d9e854bdc
commit 8e1e79f052
4 changed files with 589 additions and 62 deletions

View File

@@ -127,6 +127,7 @@ void XmlLDrivers_DocumentStorageDriver::Write
}else{
SetIsError (Standard_True);
SetStoreStatus(PCDM_SS_WriteFailure);
TCollection_ExtendedString aMsg =
TCollection_ExtendedString("Error: the file ") + aFileName +
" cannot be opened for writing";
@@ -295,12 +296,14 @@ Standard_Boolean XmlLDrivers_DocumentStorageDriver::WriteToDomDocument
catch (Standard_Failure)
{
SetIsError (Standard_True);
SetStoreStatus(PCDM_SS_Failure);
TCollection_ExtendedString anErrorString (Standard_Failure::Caught()->GetMessageString());
aMessageDriver -> Write (anErrorString.ToExtString());
}
}
if (anObjNb <= 0 && IsError() == Standard_False) {
SetIsError (Standard_True);
SetStoreStatus(PCDM_SS_No_Obj);
TCollection_ExtendedString anErrorString ("error occurred");
aMessageDriver -> Write (anErrorString.ToExtString());
}