Skip to content
Permalink
Browse files

Refresh layout maps when project colors change

  • Loading branch information
nyalldawson committed Jan 12, 2019
1 parent 0f42c8e commit 3aae40a224c02a462f16387707bdd150d57724a4
Showing with 5 additions and 0 deletions.
  1. +5 −0 src/core/layout/qgslayoutitemmap.cpp
@@ -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 );

0 comments on commit 3aae40a

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