summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDavid Tardon <dtardon@redhat.com>2015-01-01 09:30:56 +0100
committerDavid Tardon <dtardon@redhat.com>2015-01-01 09:30:56 +0100
commitbec680b235f06b439340fbc25b20b2f5a131300f (patch)
tree9e21b7b1e0dc8b54e060629cbd6ebff4d79ced03 /src
parent5753f7e98d02bde80d9e712d298372933c4a28e6 (diff)
Revert "VSDX: import <cp:category>"
We do not want "multi-level" property names. This reverts commit 5753f7e98d02bde80d9e712d298372933c4a28e6.
Diffstat (limited to 'src')
-rw-r--r--src/lib/VSDXMetaData.cpp3
-rw-r--r--src/lib/tokens.txt1
-rw-r--r--src/test/importtest.cpp1
3 files changed, 0 insertions, 5 deletions
diff --git a/src/lib/VSDXMetaData.cpp b/src/lib/VSDXMetaData.cpp
index b7e485d..8516690 100644
--- a/src/lib/VSDXMetaData.cpp
+++ b/src/lib/VSDXMetaData.cpp
@@ -82,9 +82,6 @@ void libvisio::VSDXMetaData::readCoreProperties(xmlTextReaderPtr reader)
case XML_CP_LASTMODIFIEDBY:
m_metaData.insert("dc:creator", readString(reader, XML_CP_LASTMODIFIEDBY));
break;
- case XML_CP_CATEGORY:
- m_metaData.insert("meta:user-defined:category", readString(reader, XML_CP_CATEGORY));
- break;
default:
break;
}
diff --git a/src/lib/tokens.txt b/src/lib/tokens.txt
index 6b01690..2d0022b 100644
--- a/src/lib/tokens.txt
+++ b/src/lib/tokens.txt
@@ -235,4 +235,3 @@ dcterms:created
dcterms:modified
dc:description
cp:lastModifiedBy
-cp:category
diff --git a/src/test/importtest.cpp b/src/test/importtest.cpp
index 3e20d7a..ad3722b 100644
--- a/src/test/importtest.cpp
+++ b/src/test/importtest.cpp
@@ -174,7 +174,6 @@ void ImportTest::testVsdxMetadataTitle()
assertXPath(m_doc, "/document/setDocumentMetaData", "keyword", "mytag");
assertXPath(m_doc, "/document/setDocumentMetaData", "description", "mycomment");
assertXPath(m_doc, "/document/setDocumentMetaData", "creator", "vmiklos modifier");
- assertXPathContent(m_doc, "/document/setDocumentMetaData/user-defined[@name='category']", "mycategory");
}
void ImportTest::testVsdMetadataTitleMs1252()