Skip to content

Commit

Permalink
Fixes #20038 null island in canvas.saveAsImage
Browse files Browse the repository at this point in the history
  • Loading branch information
elpaso authored and nyalldawson committed Oct 7, 2018
1 parent 7c21bfd commit 7c6cb91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/qgsmapcanvas.cpp
Expand Up @@ -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;
}
Expand Down

0 comments on commit 7c6cb91

Please sign in to comment.