Skip to content
Permalink
Browse files
[composer] Fix crash caused by map items with zero height/width
  • Loading branch information
nyalldawson committed May 24, 2014
1 parent b59a01c commit 5186a6835041e9f3316841563b39589b7fc26e75
Showing with 5 additions and 0 deletions.
  1. +5 −0 src/core/composer/qgscomposermap.cpp
@@ -171,6 +171,11 @@ void QgsComposerMap::draw( QPainter *painter, const QgsRectangle& extent, const
{
return;
}
if ( size.width() == 0 || size.height() == 0 )
{
//don't attempt to draw if size is invalid
return;
}

const QgsMapSettings& ms = mComposition->mapSettings();

0 comments on commit 5186a68

Please sign in to comment.