diff options
author | Deepanshu Gupta <deepanshu@google.com> | 2014-07-21 19:23:58 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2014-07-21 19:23:58 +0000 |
commit | e32bac5ef056cd3d7eeda5f0aba8128dad3fd75a (patch) | |
tree | 55e55563ae65682cbc57ec03e92b0457cbf4f9a7 /tools/layoutlib/bridge | |
parent | ee4c9ffb10d3b4c1750baf35acc856b3b73ea5f1 (diff) | |
parent | 0cd05aaaf684dcb2390777d675d9516bfec1e348 (diff) | |
download | frameworks_base-e32bac5ef056cd3d7eeda5f0aba8128dad3fd75a.zip frameworks_base-e32bac5ef056cd3d7eeda5f0aba8128dad3fd75a.tar.gz frameworks_base-e32bac5ef056cd3d7eeda5f0aba8128dad3fd75a.tar.bz2 |
am 37423bbb: am db2a5ff1: am 78d85419: Fix missing initial moveto in path definition.
* commit '37423bbbeab2822b39d859412aa80117a4b85282':
Fix missing initial moveto in path definition.
Diffstat (limited to 'tools/layoutlib/bridge')
-rw-r--r-- | tools/layoutlib/bridge/src/android/graphics/Path_Delegate.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/layoutlib/bridge/src/android/graphics/Path_Delegate.java b/tools/layoutlib/bridge/src/android/graphics/Path_Delegate.java index 7153a90..776398f 100644 --- a/tools/layoutlib/bridge/src/android/graphics/Path_Delegate.java +++ b/tools/layoutlib/bridge/src/android/graphics/Path_Delegate.java @@ -608,6 +608,9 @@ public final class Path_Delegate { * @param y The y-coordinate of the end of a line */ private void lineTo(float x, float y) { + if (isEmpty()) { + mPath.moveTo(mLastX = 0, mLastY = 0); + } mPath.lineTo(mLastX = x, mLastY = y); } |