summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJohn Hoford <hoford@google.com>2013-02-12 13:42:19 -0800
committerJohn Hoford <hoford@google.com>2013-02-12 13:43:29 -0800
commit80980cbad5867f10d5ad36687db2c5ef3101b5d7 (patch)
tree763707429a0d00db2432a2f8792d6f431f84d2f3 /src
parent32766ee5041cdefb8659c41a7fb075a6256f4b46 (diff)
downloadandroid_packages_apps_Snap-80980cbad5867f10d5ad36687db2c5ef3101b5d7.tar.gz
android_packages_apps_Snap-80980cbad5867f10d5ad36687db2c5ef3101b5d7.tar.bz2
android_packages_apps_Snap-80980cbad5867f10d5ad36687db2c5ef3101b5d7.zip
fix the draw clear bug
Change-Id: I1050c3e1ad1280480f35a03c9d29dc1cd44b515f
Diffstat (limited to 'src')
-rw-r--r--src/com/android/gallery3d/filtershow/filters/FilterDrawRepresentation.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/com/android/gallery3d/filtershow/filters/FilterDrawRepresentation.java b/src/com/android/gallery3d/filtershow/filters/FilterDrawRepresentation.java
index 89ea5ccc5..e41f0a622 100644
--- a/src/com/android/gallery3d/filtershow/filters/FilterDrawRepresentation.java
+++ b/src/com/android/gallery3d/filtershow/filters/FilterDrawRepresentation.java
@@ -94,7 +94,10 @@ public class FilterDrawRepresentation extends FilterRepresentation {
}
if (representation.mDrawing != null) {
mDrawing = (Vector<StrokeData>) representation.mDrawing.clone();
+ } else {
+ mDrawing = null;
}
+
} catch (CloneNotSupportedException e) {
e.printStackTrace();
}