Skip to content
Permalink
Browse files

Fix #14426 - Zoom to layer behaves really weird when using a filter o…

…n a Shape file:

Fix extent for OGR provider, followup 9fb7819
  • Loading branch information
slarosa committed Mar 6, 2016
1 parent 5b1d73e commit 5bb25d8917dc0d494ae46c035f8e019f448c60fb
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/providers/ogr/qgsogrprovider.cpp
@@ -874,8 +874,8 @@ QgsRectangle QgsOgrProvider::extent()

mExtent->MinX = qMin( mExtent->MinX, env.MinX );
mExtent->MinY = qMin( mExtent->MinY, env.MinY );
mExtent->MaxX = qMin( mExtent->MaxX, env.MaxX );
mExtent->MaxY = qMin( mExtent->MaxY, env.MaxY );
mExtent->MaxX = qMax( mExtent->MaxX, env.MaxX );
mExtent->MaxY = qMax( mExtent->MaxY, env.MaxY );
}

OGR_F_Destroy( f );

0 comments on commit 5bb25d8

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