Commit ff669f25 authored by Sune Vuorela's avatar Sune Vuorela
Browse files

make pasting from selection work in text tool.

BUG: 269608
REVIEW: 101845
parent a5be60f3
......@@ -721,8 +721,16 @@ void TextTool::mousePressEvent(KoPointerEvent *event)
if (event->button() == Qt::MidButton) // Paste
if (event->button() == Qt::MidButton) { // Paste
const QMimeData *data = QApplication::clipboard()->mimeData(QClipboard::Selection);
// on windows we do not have data if we try to paste this selection
if (data) {
m_prevCursorPosition =>position();>addCommand(new TextPasteCommand(QClipboard::Selection, this));
const QTextCursor TextTool::cursor()
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment