src/lib/VisioDocument.cpp |   15 ---------------
 1 file changed, 15 deletions(-)

New commits:
commit be8436672d46c5d2870b27265355e493fc7c86be
Author: David Tardon <dtar...@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 (...)
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to