--Boundary-00=_mYyaEZgjOYYnri6 Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Content-Disposition: inline On Wednesday 17 May 2006 13:33, Aron Stansvik wrote: > 1) The m_prefix (which contain the "\par") is at some point not > correctly reset to QString::null before > RTFWorker::ProcessParagraphData makes a recursive call to itself. Right, due to the recursion it probably needs to be saved/reset before, and restored after. This patch seems to fix the issue. -- David Faure, faure@kde.org, sponsored by Trolltech to work on KDE, Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org). --Boundary-00=_mYyaEZgjOYYnri6 Content-Type: text/x-diff; charset="iso-8859-15"; name="ExportFilter.cc.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="ExportFilter.cc.diff" Index: ExportFilter.cc =================================================================== --- ExportFilter.cc (revision 536499) +++ ExportFilter.cc (working copy) @@ -374,7 +374,7 @@ QString RTFWorker::ProcessParagraphData markup += "\\intbl"; //lists -if (layout.counter.style) + if (layout.counter.style) { markup += "{\\pntext\\pard\\plain"; if( layout.formatData.text.fontSize >= 0) @@ -725,8 +725,11 @@ if (layout.counter.style) QString fstr; QValueList::ConstIterator it; QValueList::ConstIterator end(paraList->end()); + const QString prefixSaved = m_prefix; + m_prefix = QString::null; for (it=paraList->begin();it!=end;++it) fstr += ProcessParagraphData( (*it).text, (*it).layout,(*it).formattingList); + m_prefix = prefixSaved; content += "{\\super "; content += automatic ? "\\chftn " : value; content += "{\\footnote "; --Boundary-00=_mYyaEZgjOYYnri6 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 --Boundary-00=_mYyaEZgjOYYnri6--