Skip to content
Permalink
Browse files

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
  • Loading branch information
mhugent
mhugent committed Dec 17, 2009
1 parent 56072b7 commit 6ce5610f3957ca1fbfcb82d0ce91c8679d7f9a54
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/core/qgsgeometry.cpp
@@ -3223,6 +3223,10 @@ int QgsGeometry::splitGeometry( const QList<QgsPoint>& splitLine, QList<QgsGeome
/**Replaces a part of this geometry with another line*/
int QgsGeometry::reshapeGeometry( const QList<QgsPoint>& reshapeWithLine )
{
if ( reshapeWithLine.size() < 2 )
{
return 1;
}
if ( type() == QGis::Point )
{
return 1; //cannot reshape points

0 comments on commit 6ce5610

Please sign in to comment.
You can’t perform that action at this time.