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

(cherry-picked from 5bb25d8)
  • Loading branch information
slarosa authored and nyalldawson committed Mar 6, 2016
1 parent e4fd090 commit 9842dd74a63511dfbd525227ad37a57717233632
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 9842dd7

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