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

(cherry picked from commit 597aa5b)
  • Loading branch information
nyalldawson committed Mar 9, 2020
1 parent a677daa commit 4916e393b16a62f917b8adf9cec3a3c01b1f8859
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/gui/qgsmapcanvas.cpp
@@ -2436,6 +2436,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 4916e39

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