Skip to content

Commit

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

Fix extent for OGR provider, followup 9fb7819
  • Loading branch information
slarosa committed Mar 6, 2016
1 parent 5b1d73e commit 5bb25d8
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 5bb25d8

Please sign in to comment.