diff --git a/src/widgets/widgets/qwidgettextcontrol.cpp b/src/widgets/widgets/qwidgettextcontrol.cpp index 8c849ddbae3..ef1158b8ceb 100644 --- a/src/widgets/widgets/qwidgettextcontrol.cpp +++ b/src/widgets/widgets/qwidgettextcontrol.cpp @@ -3498,7 +3498,7 @@ void QTextEditMimeData::setup() const that->setData(QLatin1String("application/vnd.oasis.opendocument.text"), buffer.data()); } #endif - that->setText(fragment.toPlainText()); + that->setText(fragment.toRawText()); fragment = QTextDocumentFragment(); }