mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-04 00:30:59 -05:00
Fix unreported crash with "fill ring" tool
unitialized smart ptr
This commit is contained in:
parent
8b0e21219d
commit
4856304d69
@ -129,7 +129,7 @@ void QgsMapToolFillRing::cadCanvasReleaseEvent( QgsMapMouseEvent *e )
|
||||
}
|
||||
|
||||
QgsLineString ext( pointList );
|
||||
std::unique_ptr< QgsPolygon > polygon;
|
||||
std::unique_ptr< QgsPolygon > polygon = qgis::make_unique< QgsPolygon >( );
|
||||
polygon->setExteriorRing( ext.clone() );
|
||||
g = QgsGeometry( std::move( polygon ) );
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user