Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Refresh layout maps when project colors change
  • Loading branch information
nyalldawson committed Jan 12, 2019
1 parent 0f42c8e commit 3aae40a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/core/layout/qgslayoutitemmap.cpp
Expand Up @@ -1522,6 +1522,11 @@ void QgsLayoutItemMap::connectUpdateSlot()
}
} );

// If project colors change, we need to redraw the map, as layer symbols may rely on project colors
connect( project, &QgsProject::projectColorsChanged, this, [ = ]
{
invalidateCache();
} );
}
connect( mLayout, &QgsLayout::refreshed, this, &QgsLayoutItemMap::invalidateCache );

Expand Down

0 comments on commit 3aae40a

Please sign in to comment.