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

0028862: Unification of empty labels saving procedure.

Added a possibility to save empty labels to a persistent document in case of need.
This commit is contained in:
szy
2017-06-29 17:51:43 +03:00
committed by bugmaster
parent dc2cc1350e
commit 030ba6489b
8 changed files with 237 additions and 49 deletions

View File

@@ -34,6 +34,8 @@
#include <XmlObjMgt_DOMString.hxx>
#include <XmlObjMgt_Persistent.hxx>
#include <XmlLDrivers.hxx>
#include <TDocStd_Owner.hxx>
#include <TDocStd_Document.hxx>
IMPLEMENT_DOMSTRING (TagString, "tag")
IMPLEMENT_DOMSTRING (LabelString, "label")
@@ -131,7 +133,7 @@ Standard_Integer XmlMDF::WriteSubTree
count += WriteSubTree(aChildLab, aLabElem, theRelocTable, theDrivers);
}
if (count > 0)
if (count > 0 || TDocStd_Owner::GetDocument(theLabel.Data())->EmptyLabelsSavingMode())
{
theElement.appendChild(aLabElem);