Skip to content
Permalink
Browse files

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
  • Loading branch information
nyalldawson committed Mar 9, 2020
1 parent aca8e03 commit 597aa5b61f08cf2790dc0acd32a8467173e21a79
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/gui/qgsmapcanvas.cpp
@@ -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 );
}

0 comments on commit 597aa5b

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