Commit 40030407 authored by Kurt Hindenburg's avatar Kurt Hindenburg

Temporary fix for crashing during Search when there is a match on top line.

CCBUG: 205495

svn path=/trunk/KDE/kdebase/apps/konsole/; revision=1017656
parent 02713c70
......@@ -1319,7 +1319,9 @@ void SearchHistoryTask::executeOnScreenWindow( SessionPtr session , ScreenWindow
{
int pos = -1;
const bool forwards = ( _direction == ForwardsSearch );
const int startLine = selectionLine + window->currentLine() + ( forwards ? 1 : -1 );
int startLine = selectionLine + window->currentLine() + ( forwards ? 1 : -1 );
// Temporary fix for #205495
if (startLine < 0) startLine = 0;
const int lastLine = window->lineCount() - 1;
QString string;
......
Markdown is supported
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