Skip to content

Commit f8981c3

Browse files
author
jef
committedDec 11, 2007
fix crash while editing shapes
git-svn-id: http://svn.osgeo.org/qgis/trunk@7769 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 56af437 commit f8981c3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎src/providers/ogr/qgsogrprovider.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,8 @@ bool QgsOgrProvider::getNextFeature(QgsFeature& feature)
287287
//precise test for intersection with search rectangle
288288
//first make QgsRect from OGRPolygon
289289
OGREnvelope env;
290-
mSelectionRectangle->getEnvelope(&env);
290+
if(mSelectionRectangle)
291+
mSelectionRectangle->getEnvelope(&env);
291292
if(env.IsInit()) //if envelope is invalid, skip the precise intersection test
292293
{
293294
selectionRect.set(env.MinX, env.MinY, env.MaxX, env.MaxY);

0 commit comments

Comments
 (0)
Please sign in to comment.