Skip to content

Commit

Permalink
Don't label preview tiles
Browse files Browse the repository at this point in the history
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 d0fd38f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/gui/qgsmapcanvas.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand Down

0 comments on commit d0fd38f

Please sign in to comment.