Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix cache invalidation during animations
  • Loading branch information
nyalldawson committed Mar 12, 2020
1 parent 9f6cf70 commit e6f285b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gui/qgsmapcanvas.cpp
Expand Up @@ -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 );
Expand Down

0 comments on commit e6f285b

Please sign in to comment.