From e24496cd389a356e2b54a3e3867bfdceba486ec0 Mon Sep 17 00:00:00 2001 From: Nyall Dawson Date: Tue, 23 Jan 2018 11:10:43 +1000 Subject: [PATCH] Silence warning --- src/core/layout/qgslayoutitempicture.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/layout/qgslayoutitempicture.cpp b/src/core/layout/qgslayoutitempicture.cpp index 222c2739336..bb1544be34f 100644 --- a/src/core/layout/qgslayoutitempicture.cpp +++ b/src/core/layout/qgslayoutitempicture.cpp @@ -840,7 +840,7 @@ void QgsLayoutItemPicture::finalizeRestoreFromXml() { disconnectMap( mRotationMap ); } - if ( mRotationMap = qobject_cast< QgsLayoutItemMap * >( mLayout->itemByUuid( mRotationMapUuid, true ) ) ) + if ( ( mRotationMap = qobject_cast< QgsLayoutItemMap * >( mLayout->itemByUuid( mRotationMapUuid, true ) ) ) ) { connect( mRotationMap, &QgsLayoutItemMap::mapRotationChanged, this, &QgsLayoutItemPicture::updateMapRotation ); connect( mRotationMap, &QgsLayoutItemMap::extentChanged, this, &QgsLayoutItemPicture::updateMapRotation );