summaryrefslogtreecommitdiff
path: root/src/xmlparser.cc
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2020-06-07 19:47:14 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2020-06-07 19:47:14 +0200
commit195bf2f6a7d7268a88338ae8fd3a30fdb5196300 (patch)
treed837e2e89c895e536b79f85f9db4ac06d78a3aca /src/xmlparser.cc
parentfd0a192245c77c4ec51ca467b55df5365d23d6c2 (diff)
Do not persist or restore 'dragged' attribute.
Diffstat (limited to 'src/xmlparser.cc')
-rw-r--r--src/xmlparser.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/xmlparser.cc b/src/xmlparser.cc
index e410f88..47e217c 100644
--- a/src/xmlparser.cc
+++ b/src/xmlparser.cc
@@ -91,6 +91,9 @@ void XmlParser::endTag(std::string name)
if(name == "attribute")
{
- node->data.attributes[attr_name] = cdata;
+ if(attr_name != "dragged") // do not persist 'dragged' attribute
+ {
+ node->data.attributes[attr_name] = cdata;
+ }
}
}