prevent nullptr dereferentiation

BUG: 357032
FIXED-IN: 5.6
REVIEW: 126787
This commit is contained in:
Thomas Lübking 2016-01-17 22:39:36 +01:00
parent c7aefc6b6b
commit 95cbd7c1b3

View file

@ -825,9 +825,8 @@ WindowQuadList Scene::Window::buildQuads(bool force) const
AbstractClient *client = dynamic_cast<AbstractClient*>(toplevel);
QRegion contents = clientShape();
QRegion center = toplevel->transparentRect();
QRegion decoration = (client && true ?
QRegion(client->decorationRect()) : shape()) - center;
ret = makeQuads(WindowQuadContents, contents, client->clientContentPos());
QRegion decoration = (client ? QRegion(client->decorationRect()) : shape()) - center;
ret = makeQuads(WindowQuadContents, contents, toplevel->clientContentPos());
QRect rects[4];
bool isShadedClient = false;