Skip tag "<nu />" in xdxf code

This commit is contained in:
Abs62 2012-09-19 16:43:47 +04:00
parent 3de1e09663
commit 21c9723567

View file

@ -61,6 +61,11 @@ string convert( string const & in, DICT_TYPE type, map < string, string > const
} }
} }
// Strip "<nu />" tags - QDomDocument don't handle it correctly
unsigned n;
while( ( n = inConverted.find( "<nu />" ) ) != string::npos )
inConverted.erase( n, 6 );
// We build a dom representation of the given xml, then do some transforms // We build a dom representation of the given xml, then do some transforms
QDomDocument dd; QDomDocument dd;