From 195bf2f6a7d7268a88338ae8fd3a30fdb5196300 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Sun, 7 Jun 2020 19:47:14 +0200 Subject: Do not persist or restore 'dragged' attribute. --- src/xmlparser.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/xmlparser.cc') 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; + } } } -- cgit v1.2.3