Navigation Menu

Skip to content

Commit

Permalink
Fix tile previews with Qt5
Browse files Browse the repository at this point in the history
  • Loading branch information
wonder-sk committed Sep 12, 2016
1 parent 03671eb commit 4fa3191
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/raster/qgsrasterlayerrenderer.cpp
Expand Up @@ -241,7 +241,7 @@ void QgsRasterLayerRenderer::Feedback::onNewData()

// update only once upon a time
// (preview itself takes some time)
if ( mLastPreview.msecsTo( QTime::currentTime() ) < mMinimalPreviewInterval )
if ( mLastPreview.isValid() && mLastPreview.msecsTo( QTime::currentTime() ) < mMinimalPreviewInterval )
return;

// TODO: update only the area that got new data
Expand Down

0 comments on commit 4fa3191

Please sign in to comment.