void HYDROData_Document::CommitOperation(const TCollection_ExtendedString& theName)
{
- myDoc->CommitCommand();
+ if( !myDoc->CommitCommand() ) // it means that there were no modifications done
+ {
+ myDoc->NewCommand();
+ NewID(); // workaround: do something just to modify the document
+ myDoc->CommitCommand();
+ }
myTransactionsAfterSave++;
if( theName.Length() != 0 )