mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
[composer] Fix crash caused by map items with zero height/width
This commit is contained in:
parent
b59a01c57b
commit
5186a68350
@ -171,6 +171,11 @@ void QgsComposerMap::draw( QPainter *painter, const QgsRectangle& extent, const
|
|||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if ( size.width() == 0 || size.height() == 0 )
|
||||||
|
{
|
||||||
|
//don't attempt to draw if size is invalid
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
const QgsMapSettings& ms = mComposition->mapSettings();
|
const QgsMapSettings& ms = mComposition->mapSettings();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user