Skip to content
Permalink
Browse files
fix crash while editing shapes
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@7769 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed Dec 11, 2007
1 parent 55744d6 commit 0ba25e4366bc75150f1ef85637b26e0b889ff6eb
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/providers/ogr/qgsogrprovider.cpp
@@ -287,7 +287,8 @@ bool QgsOgrProvider::getNextFeature(QgsFeature& feature)
//precise test for intersection with search rectangle
//first make QgsRect from OGRPolygon
OGREnvelope env;
mSelectionRectangle->getEnvelope(&env);
if(mSelectionRectangle)
mSelectionRectangle->getEnvelope(&env);
if(env.IsInit()) //if envelope is invalid, skip the precise intersection test
{
selectionRect.set(env.MinX, env.MinY, env.MaxX, env.MaxY);

0 comments on commit 0ba25e4

Please sign in to comment.