Fix tile previews with Qt5

This commit is contained in:
Martin Dobias 2016-09-12 23:52:07 +08:00
parent 03671eb29d
commit 4fa3191a85

View File

@ -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