diff options
Diffstat (limited to 'ui/qt/funnel_text_dialog.cpp')
-rw-r--r-- | ui/qt/funnel_text_dialog.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/qt/funnel_text_dialog.cpp b/ui/qt/funnel_text_dialog.cpp index 5a8c3f38e4..527d5a5513 100644 --- a/ui/qt/funnel_text_dialog.cpp +++ b/ui/qt/funnel_text_dialog.cpp @@ -160,8 +160,8 @@ void FunnelTextDialog::on_findLineEdit_textChanged(const QString &pattern) QRegularExpressionMatchIterator iter = re.globalMatch(ui->textEdit->toPlainText()); while (iter.hasNext()) { QRegularExpressionMatch match = iter.next(); - csr.setPosition(match.capturedStart(), QTextCursor::MoveAnchor); - csr.setPosition(match.capturedEnd(), QTextCursor::KeepAnchor); + csr.setPosition(static_cast<int>(match.capturedStart()), QTextCursor::MoveAnchor); + csr.setPosition(static_cast<int>(match.capturedEnd()), QTextCursor::KeepAnchor); csr.setCharFormat(highlight_fmt); } } |