Silence warning

This commit is contained in:
Nyall Dawson 2018-01-23 11:10:43 +10:00
parent b8e1f7707c
commit e24496cd38

View File

@ -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 );