mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
fix crash while editing shapes
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@7769 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
parent
55744d629c
commit
0ba25e4366
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user