Commit 5547abc7 authored by Volker Krause's avatar Volker Krause Committed by Tomaz Canabrava
Browse files

Don't trigger the min <= max assert in qBound in Qt 6

parent 6adbc553
Pipeline #228857 passed with stage
in 5 minutes and 15 seconds
......@@ -209,7 +209,7 @@ QPoint ScreenWindow::cursorPosition() const
int ScreenWindow::currentLine() const
{
return qBound(0, _currentLine, lineCount() - windowLines());
return qBound(0, _currentLine, std::max(0, lineCount() - windowLines()));
}
int ScreenWindow::currentResultLine() const
......
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