mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-26 00:02:08 -05:00
Fix tile previews with Qt5
This commit is contained in:
parent
03671eb29d
commit
4fa3191a85
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user