Skip to content

Commit

Permalink
[layouts] Avoid temporary rendering artefacts when grid properties ch…
Browse files Browse the repository at this point in the history
…ange

There's no need for the Qt item caching here, as map items have
their own internal cache handling.

(cherry picked from commit fd881db)
  • Loading branch information
nyalldawson committed Dec 8, 2018
1 parent 933df66 commit b57927f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core/layout/qgslayoutitemmap.cpp
Expand Up @@ -43,6 +43,8 @@ QgsLayoutItemMap::QgsLayoutItemMap( QgsLayout *layout )

assignFreeId();

setCacheMode( QGraphicsItem::NoCache );

connect( this, &QgsLayoutItem::sizePositionChanged, this, [ = ]
{
shapeChanged();
Expand Down

0 comments on commit b57927f

Please sign in to comment.