Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fTools: replace QgsRectangle.expand with .scale
  • Loading branch information
jef-n committed Jan 4, 2013
1 parent 1ab5cdc commit 1bda31d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/plugins/fTools/tools/doValidate.py
Expand Up @@ -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()
Expand All @@ -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)
Expand Down

0 comments on commit 1bda31d

Please sign in to comment.