[QGIS Commit] r10971 - trunk/qgis/src/plugins/interpolation
svn_qgis at osgeo.org
svn_qgis at osgeo.org
Tue Jun 23 09:56:22 EDT 2009
Author: mhugent
Date: 2009-06-23 09:56:22 -0400 (Tue, 23 Jun 2009)
New Revision: 10971
Modified:
trunk/qgis/src/plugins/interpolation/DualEdgeTriangulation.cc
Log:
Remove a potential source of crash in triangle interpolator
Modified: trunk/qgis/src/plugins/interpolation/DualEdgeTriangulation.cc
===================================================================
--- trunk/qgis/src/plugins/interpolation/DualEdgeTriangulation.cc 2009-06-23 13:21:02 UTC (rev 10970)
+++ trunk/qgis/src/plugins/interpolation/DualEdgeTriangulation.cc 2009-06-23 13:56:22 UTC (rev 10971)
@@ -1121,6 +1121,10 @@
int ptnr1 = mHalfEdge[edge1]->getPoint();
int ptnr2 = mHalfEdge[edge2]->getPoint();
int ptnr3 = mHalfEdge[edge3]->getPoint();
+ if(ptnr1 == -1 || ptnr2 == -1 || ptnr3 == -1)
+ {
+ return false;
+ }
p1->setX( mPointVector[ptnr1]->getX() );
p1->setY( mPointVector[ptnr1]->getY() );
p1->setZ( mPointVector[ptnr1]->getZ() );
More information about the QGIS-commit
mailing list