Skip to content

Commit

Permalink
Disable canvas preview jobs when rotation is set on canvas
Browse files Browse the repository at this point in the history
It's non-trivial to implement the preview jobs for rotated canvases,
and currently it just shows junk images

Fixes #34860
  • Loading branch information
nyalldawson committed Mar 9, 2020
1 parent aca8e03 commit 597aa5b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/gui/qgsmapcanvas.cpp
Expand Up @@ -2466,6 +2466,12 @@ const QgsLabelingEngineSettings &QgsMapCanvas::labelingEngineSettings() const
void QgsMapCanvas::startPreviewJobs()
{
stopPreviewJobs(); //just in case still running

//canvas preview jobs aren't compatible with rotation
// TODO fix this
if ( !qgsDoubleNear( mSettings.rotation(), 0.0 ) )
return;

schedulePreviewJob( 0 );
}

Expand Down

0 comments on commit 597aa5b

Please sign in to comment.