diff options
-rw-r--r-- | editors/xmlcopyeditor/files/patch-src_wraplibxml.cpp | 39 |
1 files changed, 34 insertions, 5 deletions
diff --git a/editors/xmlcopyeditor/files/patch-src_wraplibxml.cpp b/editors/xmlcopyeditor/files/patch-src_wraplibxml.cpp index dd59b228708c..e5071186ce18 100644 --- a/editors/xmlcopyeditor/files/patch-src_wraplibxml.cpp +++ b/editors/xmlcopyeditor/files/patch-src_wraplibxml.cpp @@ -1,9 +1,38 @@ -Fix with >libxml2-2.12 -https://sourceforge.net/p/xml-copy-editor/bugs/239/ +Fix with libxml2-2.14 +https://sourceforge.net/p/xml-copy-editor/bugs/242/ ---- src/wraplibxml.cpp.orig 2025-01-23 10:31:01 UTC +--- src/wraplibxml.cpp.orig 2025-05-15 17:09:04 UTC +++ src/wraplibxml.cpp -@@ -706,7 +706,7 @@ wxString WrapLibxml::getLastError() +@@ -54,7 +54,11 @@ class Initializer (public) + xmlLoadCatalog ( CONV ( catalogPath ) ); + ::catalog = xmlLoadACatalog ( CONV ( catalogPath ) ); + ++#if LIBXML_VERSION < 21400 + initGenericErrorDefaultFunc ( NULL ); ++#else ++ xmlSetGenericErrorFunc ( NULL, NULL ); ++#endif + } + + ~Initializer () +@@ -472,7 +476,7 @@ std::string WrapLibxml::dumpXPathObject ( xmlXPathObje + case XPATH_STRING: + sstream << obj->stringval; + break; +- ++#if LIBXML_VERSION < 21400 + case XPATH_POINT: + xmlBufferPtr bufferPtr; + bufferPtr = xmlBufferCreate(); +@@ -486,6 +490,7 @@ std::string WrapLibxml::dumpXPathObject ( xmlXPathObje + + case XPATH_RANGE: + case XPATH_LOCATIONSET: ++#endif + case XPATH_XSLT_TREE: + default: + FILE *fp = tmpfile(); +@@ -706,7 +711,7 @@ wxString WrapLibxml::getLastError() wxString WrapLibxml::getLastError() { @@ -12,7 +41,7 @@ https://sourceforge.net/p/xml-copy-editor/bugs/239/ if ( !err ) return nonParserError; -@@ -722,7 +722,7 @@ std::pair<int, int> WrapLibxml::getErrorPosition() +@@ -722,7 +727,7 @@ std::pair<int, int> WrapLibxml::getErrorPosition() std::pair<int, int> WrapLibxml::getErrorPosition() { |