From 969fc02063b47fc2151a6fc6ef9af9793da4c08a Mon Sep 17 00:00:00 2001 From: nicolasroard Date: Wed, 20 Feb 2013 17:44:51 -0800 Subject: [PATCH] Fix typo Change-Id: I6c41782a033d5ad1bb5780b22d99658223b23a0b --- src/com/android/gallery3d/filtershow/imageshow/ImageShow.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/android/gallery3d/filtershow/imageshow/ImageShow.java b/src/com/android/gallery3d/filtershow/imageshow/ImageShow.java index e7e63f1e9..79223980d 100644 --- a/src/com/android/gallery3d/filtershow/imageshow/ImageShow.java +++ b/src/com/android/gallery3d/filtershow/imageshow/ImageShow.java @@ -343,7 +343,7 @@ public class ImageShow extends View implements OnGestureListener, canvas.save(); // TODO: center scale on gesture float cx = canvas.getWidth()/2.0f; - float cy = canvas.getWidth()/2.0f; + float cy = canvas.getHeight()/2.0f; float scaleFactor = MasterImage.getImage().getScaleFactor(); Point translation = MasterImage.getImage().getTranslation(); canvas.scale(scaleFactor, scaleFactor, cx, cy); -- 2.11.0