Merge "Fix rendering issue with paths when the stroke width is 0"

This commit is contained in:
Romain Guy
2011-06-17 15:49:22 -07:00
committed by Android (Google) Code Review
4 changed files with 87 additions and 7 deletions

View File

@@ -11705,7 +11705,7 @@ public class View implements Drawable.Callback2, KeyEvent.Callback, Accessibilit
/**
* Utility to return a default size. Uses the supplied size if the
* MeasureSpec imposed no contraints. Will get larger if allowed
* MeasureSpec imposed no constraints. Will get larger if allowed
* by the MeasureSpec.
*
* @param size Default size for this view
@@ -11715,7 +11715,7 @@ public class View implements Drawable.Callback2, KeyEvent.Callback, Accessibilit
public static int getDefaultSize(int size, int measureSpec) {
int result = size;
int specMode = MeasureSpec.getMode(measureSpec);
int specSize = MeasureSpec.getSize(measureSpec);
int specSize = MeasureSpec.getSize(measureSpec);
switch (specMode) {
case MeasureSpec.UNSPECIFIED: