Skip to content
Permalink
Browse files

Don't label preview tiles

Labeling can be expensive, so don't do this for tiles which
are only going to be used as a preview image
  • Loading branch information
nyalldawson committed Jul 14, 2017
1 parent 14560c5 commit d0fd38f6e481ceb7bcfc2bc9bbbdab010e9bb4dc
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/gui/qgsmapcanvas.cpp
@@ -2154,6 +2154,7 @@ void QgsMapCanvas::startPreviewJobs()
jobExtent.setYMinimum( jobExtent.yMinimum() + dy );

jobSettings.setExtent( jobExtent );
jobSettings.setFlag( QgsMapSettings::DrawLabeling, false );

QgsMapRendererQImageJob *job = new QgsMapRendererParallelJob( jobSettings );
mPreviewJobs.append( job );

0 comments on commit d0fd38f

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