aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTor Norbye <tnorbye@google.com>2011-02-04 11:13:58 -0800
committerAndroid Code Review <code-review@android.com>2011-02-04 11:13:58 -0800
commit5605ef77b4ae4e2d7c5a203b242a0923a295b928 (patch)
treeaf17979023d8841713e6c30856ecf9c595bbe5c3
parente1e78fe1f5767925a6d411270064e434758250ec (diff)
parentcfd04ede0d3230a91e0096c5b7c80d3bc76a1f6b (diff)
downloadsdk-5605ef77b4ae4e2d7c5a203b242a0923a295b928.zip
sdk-5605ef77b4ae4e2d7c5a203b242a0923a295b928.tar.gz
sdk-5605ef77b4ae4e2d7c5a203b242a0923a295b928.tar.bz2
Merge "Prevent java.lang.ArithmeticException in draw9patch"
-rw-r--r--draw9patch/src/com/android/draw9patch/ui/ImageEditorPanel.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/draw9patch/src/com/android/draw9patch/ui/ImageEditorPanel.java b/draw9patch/src/com/android/draw9patch/ui/ImageEditorPanel.java
index 1afc2ce..e0aa026 100644
--- a/draw9patch/src/com/android/draw9patch/ui/ImageEditorPanel.java
+++ b/draw9patch/src/com/android/draw9patch/ui/ImageEditorPanel.java
@@ -655,7 +655,7 @@ class ImageEditorPanel extends JPanel {
private static final double STRIPES_SPACING = 6.0;
private static final int STRIPES_ANGLE = 45;
- private int zoom;
+ private int zoom = DEFAULT_ZOOM;
private boolean showPatches;
private boolean showLock = true;