Skip to content
Permalink
Browse files

Fix map item tooltips

  • Loading branch information
nyalldawson committed Nov 21, 2017
1 parent 63f14bd commit 3decab9899a6cc51ae9c17bbdf28917ef5efab5a
Showing with 6 additions and 5 deletions.
  1. +6 −5 src/core/layout/qgslayoutitemmap.cpp
@@ -100,10 +100,11 @@ void QgsLayoutItemMap::assignFreeId()

maxId = std::max( maxId, map->mMapId );
}
if ( !used )
return;
mMapId = maxId + 1;
mLayout->itemsModel()->updateItemDisplayName( this );
if ( used )
{
mMapId = maxId + 1;
mLayout->itemsModel()->updateItemDisplayName( this );
}
updateToolTip();
}

@@ -1253,7 +1254,7 @@ void QgsLayoutItemMap::connectUpdateSlot()

void QgsLayoutItemMap::updateToolTip()
{
setToolTip( tr( "Map %1" ).arg( displayName() ) );
setToolTip( displayName() );
}

QList<QgsMapLayer *> QgsLayoutItemMap::layersToRender( const QgsExpressionContext *context ) const

0 comments on commit 3decab9

Please sign in to comment.
You can’t perform that action at this time.