diff options
author | David Tardon <dtardon@redhat.com> | 2016-03-22 14:59:03 +0100 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2016-03-22 15:09:43 +0100 |
commit | be8436672d46c5d2870b27265355e493fc7c86be (patch) | |
tree | 24924ec779c29d369201f800831f344d871f4946 | |
parent | 237e3edb5a107d0928326ded5df3b0145f184ba4 (diff) |
tdf#98791 remove namespace check for VDX
... to allow import of documents created by 3rd-party applications that
cannot be bothered to produce a valid XML (like lucidchart.com).
Change-Id: I70dda9a7d6e90e84d0eb78bd4dfa153e3e093528
-rw-r--r-- | src/lib/VisioDocument.cpp | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/src/lib/VisioDocument.cpp b/src/lib/VisioDocument.cpp index 6304391..b8099e5 100644 --- a/src/lib/VisioDocument.cpp +++ b/src/lib/VisioDocument.cpp @@ -271,21 +271,6 @@ static bool isXmlVisioDocument(librevenge::RVNGInputStream *input) { return false; } - - // Checking the two possible namespaces of VDX documents. This may be a bit strict - // and filter out some of third party VDX documents. If that happens, commenting out - // this block could be an option. - const xmlChar *nsname = xmlTextReaderConstNamespaceUri(reader.get()); - if (!nsname) - { - return false; - } - if (!xmlStrEqual(nsname, BAD_CAST("urn:schemas-microsoft-com:office:visio")) - && !xmlStrEqual(nsname, BAD_CAST("http://schemas.microsoft.com/visio/2003/core"))) - { - return false; - } - return true; } catch (...) |