diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2014-12-30 22:18:33 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2014-12-30 22:22:36 +0100 |
commit | 86ad7206b1d617817ac8699db740b613f3ed19a2 (patch) | |
tree | 0d871eba39234d7626d81737426ff7081892ddc5 /src | |
parent | 9cbe861b8f5e53a0aa83b863b1bf42224139dcfc (diff) |
VSD: Visio doesn't write separate author and last modifier fields
So author always equals to the last modifier. This is consistent with
how the single timestamp is imported both as a creation and modification
time, too.
Change-Id: I65233316f412166dfd82c720c830cf625e1275b5
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/VSDMetaData.cpp | 1 | ||||
-rw-r--r-- | src/test/importtest.cpp | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/VSDMetaData.cpp b/src/lib/VSDMetaData.cpp index 0288392..d1db01e 100644 --- a/src/lib/VSDMetaData.cpp +++ b/src/lib/VSDMetaData.cpp @@ -129,6 +129,7 @@ void libvisio::VSDMetaData::readTypedPropertyValue(librevenge::RVNGInputStream * break; case PIDSI_AUTHOR: m_metaData.insert("meta:initial-creator", string); + m_metaData.insert("dc:creator", string); break; case PIDSI_KEYWORDS: m_metaData.insert("meta:keyword", string); diff --git a/src/test/importtest.cpp b/src/test/importtest.cpp index a69bcef..85a7175 100644 --- a/src/test/importtest.cpp +++ b/src/test/importtest.cpp @@ -158,6 +158,8 @@ void ImportTest::testVsdMetadataTitleMs1252() assertXPath(m_doc, "/document/setDocumentMetaData", "subject", "mysubject"); assertXPath(m_doc, "/document/setDocumentMetaData", "initial-creator", "vmiklos creator"); + // There is only one author/last-modifier field in the file, so make sure creator is the same as initial-creator. + assertXPath(m_doc, "/document/setDocumentMetaData", "creator", "vmiklos creator"); assertXPath(m_doc, "/document/setDocumentMetaData", "keyword", "mytag"); assertXPath(m_doc, "/document/setDocumentMetaData", "description", "mycomment"); } |