Commit 5635272b authored by Robert Loehning's avatar Robert Loehning Committed by Robert Löhning
Browse files

Improved check for NULL-pointer deref

Change-Id: I99fac91fe997a8f6437998687cf9d30557fa818e
Reviewed-by: default avatarLasse Holmstedt <>
parent 85223b8a
......@@ -200,7 +200,8 @@ void BoundingRectHighlighter::itemDestroyed(QObject *obj)
void BoundingRectHighlighter::highlightAll()
foreach (BoundingBox *box, m_boxes) {
if (box && box->highlightedObject.isNull()) {
if (box->highlightedObject.isNull()) {
// clear all highlights
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