Skip to content
Permalink
Browse files

fix from mloskot for vc++8 crashes

git-svn-id: http://svn.osgeo.org/qgis/trunk@5017 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent
mhugent committed Mar 13, 2006
1 parent 2a1887f commit 3688f7cba6e38b30298483c33bcec7b98133a738
Showing with 2 additions and 4 deletions.
  1. +2 −4 src/providers/ogr/qgsogrprovider.cpp
@@ -620,7 +620,7 @@ void QgsOgrProvider::select(QgsRect *rect, bool useIntersect)
// spatial query to select features
std::cerr << "Selection rectangle is " << *rect << std::endl;
OGRGeometry *filter = 0;
filter = new OGRPolygon();
filter = OGRGeometryFactory::createGeometry(wkbPolygon);
QString wktExtent = QString("POLYGON ((%1))").arg(rect->asPolygon());
const char *wktText = (const char *)wktExtent;

@@ -651,9 +651,7 @@ void QgsOgrProvider::select(QgsRect *rect, bool useIntersect)
assert(result==OGRERR_NONE);
#endif
}

delete filter;

OGRGeometryFactory::destroyGeometry(filter);
} // QgsOgrProvider::select


0 comments on commit 3688f7c

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