Commit 34df013e authored by Matan Ziv-Av's avatar Matan Ziv-Av Committed by Tomaz Canabrava
Browse files

QRegion::contains does not do what the name suggests

parent 78971aa5
......@@ -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)) {
delete placement;
} else {
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