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
34df013e
Commit
34df013e
authored
Feb 10, 2022
by
Matan Ziv-Av
Committed by
Tomaz Canabrava
Feb 23, 2022
Browse files
QRegion::contains does not do what the name suggests
parent
78971aa5
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/terminalDisplay/TerminalDisplay.cpp
View file @
34df013e
...
...
@@ -3067,7 +3067,7 @@ void TerminalDisplay::addPlacement(TerminalGraphicsPlacement_t *p)
TerminalGraphicsPlacement_t
*
placement
=
(
*
_graphicsPlacements
)[
i
];
if
(
placement
->
pid
<
0
)
{
QRect
rect
(
placement
->
col
,
placement
->
row
,
placement
->
cols
,
placement
->
rows
);
if
(
covered
.
contains
(
rect
))
{
if
(
covered
.
intersected
(
rect
)
==
QRegion
(
rect
))
{
_graphicsPlacements
->
remove
(
i
);
delete
placement
;
}
else
{
...
...
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