Skip to content

Commit

Permalink
Fix for bug #2291, Reshape Features tool crashes on right mouse click
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk@12501 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent committed Dec 17, 2009
1 parent 56072b7 commit 6ce5610
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/core/qgsgeometry.cpp
Expand Up @@ -3223,6 +3223,10 @@ int QgsGeometry::splitGeometry( const QList<QgsPoint>& splitLine, QList<QgsGeome
/**Replaces a part of this geometry with another line*/ /**Replaces a part of this geometry with another line*/
int QgsGeometry::reshapeGeometry( const QList<QgsPoint>& reshapeWithLine ) int QgsGeometry::reshapeGeometry( const QList<QgsPoint>& reshapeWithLine )
{ {
if ( reshapeWithLine.size() < 2 )
{
return 1;
}
if ( type() == QGis::Point ) if ( type() == QGis::Point )
{ {
return 1; //cannot reshape points return 1; //cannot reshape points
Expand Down

0 comments on commit 6ce5610

Please sign in to comment.