Skip to content

Commit 6ce5610

Browse files
author
mhugent
committedDec 17, 2009
Fix for bug #2291, Reshape Features tool crashes on right mouse click
git-svn-id: http://svn.osgeo.org/qgis/trunk@12501 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 56072b7 commit 6ce5610

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed
 

‎src/core/qgsgeometry.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3223,6 +3223,10 @@ int QgsGeometry::splitGeometry( const QList<QgsPoint>& splitLine, QList<QgsGeome
32233223
/**Replaces a part of this geometry with another line*/
32243224
int QgsGeometry::reshapeGeometry( const QList<QgsPoint>& reshapeWithLine )
32253225
{
3226+
if ( reshapeWithLine.size() < 2 )
3227+
{
3228+
return 1;
3229+
}
32263230
if ( type() == QGis::Point )
32273231
{
32283232
return 1; //cannot reshape points

0 commit comments

Comments
 (0)
Please sign in to comment.