Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Utilities
Konsole
Commits
5547abc7
Commit
5547abc7
authored
Aug 31, 2022
by
Volker Krause
Committed by
Tomaz Canabrava
Sep 08, 2022
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
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
src/ScreenWindow.cpp
View file @
5547abc7
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment