Skip to content
Permalink
Browse files

Fix cache invalidation during animations

  • Loading branch information
nyalldawson committed Mar 12, 2020
1 parent 9f6cf70 commit e6f285bfc77be4578c9e5608645cdc430ed344f7
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/gui/qgsmapcanvas.cpp
@@ -750,8 +750,8 @@ void QgsMapCanvas::setTemporalRange( const QgsDateTimeRange &dateTimeRange )
{
// we need to discard any previously cached images which have temporal properties enabled, so that these will be updated when
// the canvas is redrawn
const QList<QgsMapLayer *> layers;
for ( QgsMapLayer *layer : layers )
const QList<QgsMapLayer *> layerList = mapSettings().layers();
for ( QgsMapLayer *layer : layerList )
{
if ( layer->temporalProperties() && layer->temporalProperties()->isActive() )
mCache->invalidateCacheForLayer( layer );

0 comments on commit e6f285b

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