Skip to content
Permalink
Browse files

Fixes #20038 null island in canvas.saveAsImage

  • Loading branch information
elpaso authored and nyalldawson committed Oct 7, 2018
1 parent 7c21bfd commit 7c6cb910cc75053dad930eb0e274a2acac87c1d3
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/gui/qgsmapcanvas.cpp
@@ -756,7 +756,7 @@ void QgsMapCanvas::saveAsImage( const QString &fileName, QPixmap *theQPixmap, co
{
item = i.previous();

if ( !item || dynamic_cast< QgsMapCanvasAnnotationItem * >( item ) )
if ( !( item && dynamic_cast< QgsMapCanvasAnnotationItem * >( item ) ) )
{
continue;
}

0 comments on commit 7c6cb91

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