Skip to content
Permalink
Browse files

Fix tile previews with Qt5

  • Loading branch information
wonder-sk committed Sep 12, 2016
1 parent 03671eb commit 4fa3191a85a5702db262d001a15f5cc0a5a2b4d5
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/raster/qgsrasterlayerrenderer.cpp
@@ -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

0 comments on commit 4fa3191

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