[Libreoffice-commits] libvisio.git: src/lib
David Tardon
dtardon at redhat.com
Tue Mar 22 14:10:17 UTC 2016
src/lib/VisioDocument.cpp | 15 ---------------
1 file changed, 15 deletions(-)
New commits:
commit be8436672d46c5d2870b27265355e493fc7c86be
Author: David Tardon <dtardon at redhat.com>
Date: Tue Mar 22 14:59:03 2016 +0100
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
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 (...)
More information about the Libreoffice-commits
mailing list