OSDN Git Service

Fix crash when starting the editor
authornicolasroard <nicolasroard@google.com>
Tue, 9 Oct 2012 02:29:58 +0000 (19:29 -0700)
committernicolasroard <nicolasroard@google.com>
Tue, 9 Oct 2012 02:29:58 +0000 (19:29 -0700)
Bug: 7224232

CL 236429 readded offending lines after the merge...

Change-Id: I670c60ba366d2c8ec343b26c65580e8900c67819

src/com/android/gallery3d/filtershow/imageshow/ImageShow.java

index 185ac2a..809585d 100644 (file)
@@ -414,8 +414,8 @@ public class ImageShow extends View implements SliderListener, OnSeekBarChangeLi
         float w = image.getWidth();
         float h = image.getHeight();
         RectF r = new RectF(0, 0, w, h);
-        mImagePreset.mGeoData.setPhotoBounds(r);
-        mImagePreset.mGeoData.setCropBounds(r);
+        getImagePreset().mGeoData.setPhotoBounds(r);
+        getImagePreset().mGeoData.setCropBounds(r);
         setDirtyGeometryFlag();
     }