diff --git a/retroshare-gui/src/gui/chat/ChatWidget.cpp b/retroshare-gui/src/gui/chat/ChatWidget.cpp index b4fff5fd7..a08ce7857 100644 --- a/retroshare-gui/src/gui/chat/ChatWidget.cpp +++ b/retroshare-gui/src/gui/chat/ChatWidget.cpp @@ -1693,6 +1693,7 @@ void ChatWidget::quote() { QStringList sl = text.split(QRegExp("[\r\n]"),QString::SkipEmptyParts); text = sl.join("\n>"); + text.replace(QChar(-4),"");//Char used when image on text. emit ui->chatTextEdit->append(QString(">") + text); } } diff --git a/retroshare-gui/src/gui/common/MimeTextEdit.cpp b/retroshare-gui/src/gui/common/MimeTextEdit.cpp index 4d292a87e..79ae8de56 100644 --- a/retroshare-gui/src/gui/common/MimeTextEdit.cpp +++ b/retroshare-gui/src/gui/common/MimeTextEdit.cpp @@ -269,7 +269,7 @@ void MimeTextEdit::pasteOwnCertificateLink() void MimeTextEdit::pastePlainText() { - insertPlainText(QApplication::clipboard()->text()); + insertPlainText(QApplication::clipboard()->text().remove(QChar(-4)));//Char used when image on text. } void MimeTextEdit::spoiler() diff --git a/retroshare-gui/src/util/HandleRichText.cpp b/retroshare-gui/src/util/HandleRichText.cpp index c2b7174e4..886bb60bb 100644 --- a/retroshare-gui/src/util/HandleRichText.cpp +++ b/retroshare-gui/src/util/HandleRichText.cpp @@ -1067,6 +1067,7 @@ QString RsHtml::makeQuotedText(RSTextBrowser *browser) } QStringList sl = text.split(QRegExp("[\r\n]"),QString::SkipEmptyParts); text = sl.join("\n>"); + text.replace(QChar(-4),"");//Char used when image on text. return QString(">") + text; }