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); AbstractClient *client = dynamic_cast<AbstractClient*>(toplevel);
QRegion contents = clientShape(); QRegion contents = clientShape();
QRegion center = toplevel->transparentRect(); QRegion center = toplevel->transparentRect();
QRegion decoration = (client && true ? QRegion decoration = (client ? QRegion(client->decorationRect()) : shape()) - center;
QRegion(client->decorationRect()) : shape()) - center; ret = makeQuads(WindowQuadContents, contents, toplevel->clientContentPos());
ret = makeQuads(WindowQuadContents, contents, client->clientContentPos());
QRect rects[4]; QRect rects[4];
bool isShadedClient = false; bool isShadedClient = false;