Skip to content

Commit fd881db

Browse files
committed
[layouts] Avoid temporary rendering artefacts when grid properties change
There's no need for the Qt item caching here, as map items have their own internal cache handling.
1 parent d794bdb commit fd881db

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/core/layout/qgslayoutitemmap.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ QgsLayoutItemMap::QgsLayoutItemMap( QgsLayout *layout )
4343

4444
assignFreeId();
4545

46+
setCacheMode( QGraphicsItem::NoCache );
47+
4648
connect( this, &QgsLayoutItem::sizePositionChanged, this, [ = ]
4749
{
4850
shapeChanged();

0 commit comments

Comments
 (0)