diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2020-06-07 19:47:14 +0200 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2020-06-07 19:47:14 +0200 |
commit | 195bf2f6a7d7268a88338ae8fd3a30fdb5196300 (patch) | |
tree | d837e2e89c895e536b79f85f9db4ac06d78a3aca /src/nodetree.cc | |
parent | fd0a192245c77c4ec51ca467b55df5365d23d6c2 (diff) |
Do not persist or restore 'dragged' attribute.
Diffstat (limited to 'src/nodetree.cc')
-rw-r--r-- | src/nodetree.cc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/nodetree.cc b/src/nodetree.cc index 2043c90..38c20e1 100644 --- a/src/nodetree.cc +++ b/src/nodetree.cc @@ -53,8 +53,11 @@ std::string Node::toXML(std::string prefix) std::map<std::string, std::string>::iterator ai = data.attributes.begin(); while(ai != data.attributes.end()) { - xml += prefix + " <attribute name=\"" + xml_encode(ai->first) + "\">" - + xml_encode(ai->second) + "</attribute>\n"; + if(ai->first != "dragged") // Do not persist 'dragged' attribute + { + xml += prefix + " <attribute name=\"" + xml_encode(ai->first) + "\">" + + xml_encode(ai->second) + "</attribute>\n"; + } ai++; } xml += prefix + " </attributes>\n"; |