0023523: In session DRAW it is impossible to close document having name already once...
authorgka <gka@opencascade.com>
Fri, 14 Dec 2012 12:17:11 +0000 (16:17 +0400)
committergka <gka@opencascade.com>
Fri, 14 Dec 2012 12:17:11 +0000 (16:17 +0400)
commit24de79c3a5694af1d02437a7dccd1624d9a039ca
treed7d752aa690cb38f0d8b988e4b9d6c98bace2617
parent7a06c690fbf05b0def03a8c3632e9bb39e657a11
0023523: In session DRAW it is impossible to close document having name already once closed document.

Added destructor for TDocStd_Document which performs destruction of document in logical order in order to avoid exception when Undo and Redo fields are destructed after THF_Data field.
Added removing name of closed document from tcl variables in the DRAW in order to avoid exception during use the same name for new document.
Modification to avoid compilation error class ViewerTest
Minor correction in test caf basic G3
25 files changed:
src/CDM/CDM_Document.cdl
src/DDocStd/DDocStd_ApplicationCommands.cxx
src/TDocStd/TDocStd_Document.cdl
src/TDocStd/TDocStd_Document.cxx
src/ViewerTest/ViewerTest.cdl
src/ViewerTest/ViewerTest.cxx
tests/bugs/caf/bug23489
tests/caf/basic/G3
tests/caf/bugs/B6
tests/caf/named_shape/E1
tests/caf/named_shape/E2
tests/caf/named_shape/E3
tests/caf/named_shape/E4
tests/caf/named_shape/E5
tests/caf/named_shape/E6
tests/caf/named_shape/E7
tests/caf/named_shape/E8
tests/caf/named_shape/E9
tests/caf/named_shape/F1
tests/caf/named_shape/F2
tests/caf/named_shape/F3
tests/caf/named_shape/F4
tests/caf/named_shape/F5
tests/caf/named_shape/F6
tests/caf/named_shape/F7