-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
hi list. if i hit the quote button after selecting some text (so the reply contain only that text) generates > <!--StartFragment--><p>hello<br />world the affected code is: void UserViewEvent::generateReply() { QString s; if (mlvRead->hasMarkedText()) s = QString("> ") + mlvRead->markedText(); else // we don't use mlvRead->text() since on Qt3 it returns rich text if (!m_messageText.stripWhiteSpace().isEmpty()) s = QString("> ") + m_messageText; the code has no sense. mlvRead->markedText() calls to mlvRead->selectedText();, which is also rich text. One solution would be to write a MLView::toPlainText method (and spend some cpu cycles). Saving the plain text before changing things in MLView::toPlainText is not viable, because QTextEdit::getSelection values are relative to the rich text. Regars, Juan. - -- Buenos Aires, Argentina -----BEGIN PGP SIGNATURE----- iD8DBQE+Z8jiUMlRieHkprgRAsSOAJ4sGi5al7SqM06lOscD8n4qbi53owCgu2cN /tmE7cvDdwAnuCRT5R2M7ew= =zV0r -----END PGP SIGNATURE----- ------------------------------------------------------- This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger for complex code. Debugging C/C++ programs can leave you feeling lost and disoriented. TotalView can help you find your way. Available on major UNIX and Linux platforms. Try it free. www.etnus.com _______________________________________________ Licq-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/licq-devel