Skip to content

Commit

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

Fixes #34860

(cherry picked from commit 597aa5b)
(cherry picked from commit 4916e39)
  • Loading branch information
nyalldawson committed Mar 17, 2020
1 parent c356cf2 commit 91cd7e6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/gui/qgsmapcanvas.cpp
Expand Up @@ -2408,6 +2408,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 91cd7e6

Please sign in to comment.