Skip to content
Permalink
Browse files
fTools: replace QgsRectangle.expand with .scale
  • Loading branch information
jef-n committed Jan 4, 2013
1 parent 1ab5cdc commit 1bda31d4b3e897380354d911700bf32533c9a189
Showing with 2 additions and 2 deletions.
  1. +2 −2 python/plugins/fTools/tools/doValidate.py
@@ -175,7 +175,7 @@ def zoomToError(self, curr, prev):
self.marker.setGeom(e)

rect = mc.extent()
rect.expand( 0.25, e )
rect.scale( 0.5, e )

else:
self.marker.reset()
@@ -186,7 +186,7 @@ def zoomToError(self, curr, prev):
return

rect = mc.mapRenderer().layerExtentToOutputExtent( self.vlayer, ft.geometry().boundingBox() )
rect.expand(1.05)
rect.scale( 1.05 )

# Set the extent to our new rectangle
mc.setExtent(rect)

0 comments on commit 1bda31d

Please sign in to comment.