"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/gui/qgsmapcanvas.cpp" between
QGIS-final-3_10_11.tar.gz and QGIS-final-3_10_12.tar.gz

About: QGIS (Quantum GIS) is a Geographic Information System that supports vector, raster, and database formats. Long-term release (3.10.x series).

qgsmapcanvas.cpp  (QGIS-final-3_10_11):qgsmapcanvas.cpp  (QGIS-final-3_10_12)
skipping to change at line 2435 skipping to change at line 2435
jobSettings.setFlag( QgsMapSettings::RenderPreviewJob, true ); jobSettings.setFlag( QgsMapSettings::RenderPreviewJob, true );
// truncate preview layers to fast layers // truncate preview layers to fast layers
const QList<QgsMapLayer *> layers = jobSettings.layers(); const QList<QgsMapLayer *> layers = jobSettings.layers();
QList< QgsMapLayer * > previewLayers; QList< QgsMapLayer * > previewLayers;
QgsDataProvider::PreviewContext context; QgsDataProvider::PreviewContext context;
context.maxRenderingTimeMs = MAXIMUM_LAYER_PREVIEW_TIME_MS; context.maxRenderingTimeMs = MAXIMUM_LAYER_PREVIEW_TIME_MS;
for ( QgsMapLayer *layer : layers ) for ( QgsMapLayer *layer : layers )
{ {
context.lastRenderingTimeMs = mLastLayerRenderTime.value( layer->id(), 0 ); context.lastRenderingTimeMs = mLastLayerRenderTime.value( layer->id(), 0 );
if ( !layer->dataProvider()->renderInPreview( context ) ) QgsDataProvider *provider = layer->dataProvider();
if ( provider && !provider->renderInPreview( context ) )
{ {
QgsDebugMsgLevel( QStringLiteral( "Layer %1 not rendered because it does n ot match the renderInPreview criterion %2" ).arg( layer->id() ).arg( mLastLayerR enderTime.value( layer->id() ) ), 3 ); QgsDebugMsgLevel( QStringLiteral( "Layer %1 not rendered because it does n ot match the renderInPreview criterion %2" ).arg( layer->id() ).arg( mLastLayerR enderTime.value( layer->id() ) ), 3 );
continue; continue;
} }
previewLayers << layer; previewLayers << layer;
} }
jobSettings.setLayers( previewLayers ); jobSettings.setLayers( previewLayers );
QgsMapRendererQImageJob *job = new QgsMapRendererSequentialJob( jobSettings ); QgsMapRendererQImageJob *job = new QgsMapRendererSequentialJob( jobSettings );
 End of changes. 1 change blocks. 
1 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)