Skip to content


fix crash while editing shapes
Browse files Browse the repository at this point in the history
git-svn-id: c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed Dec 11, 2007
1 parent 55744d6 commit 0ba25e4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/providers/ogr/qgsogrprovider.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,8 @@ bool QgsOgrProvider::getNextFeature(QgsFeature& feature)
//precise test for intersection with search rectangle
//first make QgsRect from OGRPolygon
OGREnvelope env;
if(env.IsInit()) //if envelope is invalid, skip the precise intersection test
selectionRect.set(env.MinX, env.MinY, env.MaxX, env.MaxY);
Expand Down

0 comments on commit 0ba25e4

Please sign in to comment.