~ubuntu-branches/ubuntu/quantal/qgis/quantal

« back to all changes in this revision

Viewing changes to debian/patches/select.dpatch

  • Committer: Bazaar Package Importer
  • Author(s): Steve Halasz
  • Date: 2005-04-14 11:03:20 UTC
  • Revision ID: james.westby@ubuntu.com-20050414110320-44gldzn82v2283dq
Tags: 0.6.0-2
* Depend on xerces26 instead of xerces21 (Closes: #301709)
* Apply patch for PostGis 1.0 (Closes: #303743)
* Added note about setting QTDIR=/usr/share/qt3 (Closes: #281910)
* Patch for crash loading shapefiles exposed by gdal 1.2.6

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh /usr/share/dpatch/dpatch-run
 
2
## select.dpatch by  <debian@adkgis.org>
 
3
##
 
4
## All lines beginning with `## DP:' are a description of the patch.
 
5
## DP: Fix crash when selecting with a filter
 
6
 
 
7
@DPATCH@
 
8
diff -urNad qgis-0.6.0/providers/ogr/qgsshapefileprovider.cpp /tmp/dpep.Kry73K/qgis-0.6.0/providers/ogr/qgsshapefileprovider.cpp
 
9
--- qgis-0.6.0/providers/ogr/qgsshapefileprovider.cpp   2005-04-17 14:36:55.869770952 -0400
 
10
+++ /tmp/dpep.Kry73K/qgis-0.6.0/providers/ogr/qgsshapefileprovider.cpp  2005-04-17 14:44:09.913786232 -0400
 
11
@@ -501,7 +501,7 @@
 
12
   }
 
13
   // reset the extent for the ogr filter
 
14
   //
 
15
-  wktExtent = QString("POLYGON ((%1))").arg(rect->stringRep());
 
16
+  wktExtent = QString("POLYGON ((%1))").arg(rect->asPolygon());
 
17
   wktText = (const char *)wktExtent;
 
18
 
 
19
   OGRErr result = ((OGRPolygon *) filter)->importFromWkt((char **)&wktText);