Skip to content

Commit

Permalink
fix for #1095
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk@12738 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
rblazek committed Jan 11, 2010
1 parent f7d90c6 commit 5b662ac
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/providers/grass/qgsgrassprovider.cpp
Expand Up @@ -491,8 +491,11 @@ void QgsGrassProvider::select( QgsAttributeList fetchAttributes,

Polygon = Vect_new_line_struct();

Vect_append_point( Polygon, rect.xMinimum(), rect.yMinimum(), 0 );
Vect_append_point( Polygon, rect.xMaximum(), rect.yMinimum(), 0 );
// Using z coor -PORT_DOUBLE_MAX/PORT_DOUBLE_MAX we cover 3D, Vect_select_lines_by_polygon is
// using dig_line_box to get the box, it is not perfect, Vect_select_lines_by_polygon
// should clarify better how 2D/3D is treated
Vect_append_point( Polygon, rect.xMinimum(), rect.yMinimum(), -PORT_DOUBLE_MAX );
Vect_append_point( Polygon, rect.xMaximum(), rect.yMinimum(), PORT_DOUBLE_MAX );
Vect_append_point( Polygon, rect.xMaximum(), rect.yMaximum(), 0 );
Vect_append_point( Polygon, rect.xMinimum(), rect.yMaximum(), 0 );
Vect_append_point( Polygon, rect.xMinimum(), rect.yMinimum(), 0 );
Expand Down

0 comments on commit 5b662ac

Please sign in to comment.