Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix #14426 - Zoom to layer behaves really weird when using a filter o…
…n a Shape file:

Fix extent for OGR provider, followup 9fb7819

(cherry-picked from 5bb25d8)
  • Loading branch information
slarosa authored and nyalldawson committed Mar 6, 2016
1 parent e4fd090 commit 9842dd7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/providers/ogr/qgsogrprovider.cpp
Expand Up @@ -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 );
Expand Down

0 comments on commit 9842dd7

Please sign in to comment.