Skip to content
Permalink
Browse files

Remove a potential source of crash in triangle interpolator

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@10971 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent
mhugent committed Jun 23, 2009
1 parent c28f61b commit d953fcd874e6775cb4d5aecfe73a915ca8e6d868
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/plugins/interpolation/DualEdgeTriangulation.cc
@@ -1121,6 +1121,10 @@ bool DualEdgeTriangulation::getTriangle( double x, double y, Point3D* p1, Point3
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() );

0 comments on commit d953fcd

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