This is a multi-part message in MIME format. --------------040001060206070009010908 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit I am sorry about my last patch which proved erroneous. I hope this is better. My oowriter files do not contain the prefix ("style") in the tagName. I split the checks so that the prefix and the tagName are examined separately to avoid a crash. If someone else has got files to test this it would be good. Best Regards /Magnus --------------040001060206070009010908 Content-Type: text/plain; name="patch.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="patch.diff" Index: filters/liboofilter/ooutils.cc =================================================================== --- filters/liboofilter/ooutils.cc (revision 891384) +++ filters/liboofilter/ooutils.cc (working copy) @@ -208,7 +208,8 @@ for ( KoXmlNode it = tabStops.firstChild(); !it.isNull(); it = it.nextSibling() ) { KoXmlElement tabStop = it.toElement(); - Q_ASSERT( tabStop.tagName() == "style:tab-stop" ); + Q_ASSERT( tabStop.prefix() == "style" ); + Q_ASSERT( tabStop.tagName() == "tab-stop" ); QString type = tabStop.attributeNS( ooNS::style, "type", QString() ); // left, right, center or char QDomElement elem = parentElement.ownerDocument().createElement( "TABULATOR" ); --------------040001060206070009010908 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ koffice-devel mailing list koffice-devel@kde.org https://mail.kde.org/mailman/listinfo/koffice-devel --------------040001060206070009010908--