Skip to content
Permalink
Browse files

Minor code improvements

  • Loading branch information
nyalldawson committed Jul 14, 2017
1 parent 4c432a1 commit 1e145b3ab2fc86561c85bf57130a60ff0fdc3da4
Showing with 3 additions and 6 deletions.
  1. +3 −6 src/gui/qgsmapcanvas.cpp
@@ -639,10 +639,7 @@ void QgsMapCanvas::rendererJobFinished()
void QgsMapCanvas::previewJobFinished()
{
QgsMapRendererQImageJob *job = qobject_cast<QgsMapRendererQImageJob *>( sender() );
if ( !job )
{
return;
}
Q_ASSERT( job );

if ( mMap )
{
@@ -2166,8 +2163,8 @@ void QgsMapCanvas::startPreviewJobs()

void QgsMapCanvas::stopPreviewJobs()
{
QList< QgsMapRendererQImageJob * >::iterator it = mPreviewJobs.begin();
for ( ; it != mPreviewJobs.end(); ++it )
QList< QgsMapRendererQImageJob * >::const_iterator it = mPreviewJobs.constBegin();
for ( ; it != mPreviewJobs.constEnd(); ++it )
{
if ( *it )
{

0 comments on commit 1e145b3

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