From e88ea0735385620070090467afd11026a61b6924 Mon Sep 17 00:00:00 2001 From: "Zheng, Lei" Date: Thu, 1 Aug 2019 09:12:46 +0800 Subject: [PATCH] PropertyContainer: skip saving trasient dynamic property --- src/App/PropertyContainer.cpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/App/PropertyContainer.cpp b/src/App/PropertyContainer.cpp index d0b1bd52c9..a11ca4febe 100644 --- a/src/App/PropertyContainer.cpp +++ b/src/App/PropertyContainer.cpp @@ -267,8 +267,17 @@ void PropertyContainer::Save (Base::Writer &writer) const auto status = it->second->getStatus(); if(status) writer.Stream() << "\" status=\"" << status; - writer.Stream() << "\">" << std::endl; + writer.Stream() << "\">"; + if(it->second->testStatus(Property::Transient) + || it->second->getType() & Prop_Transient) + { + writer.Stream() << "" << std::endl; + continue; + } + + writer.Stream() << std::endl; + writer.incInd(); // indentation for the actual property try {