Merge "Fix wrong condition."

This commit is contained in:
Romain Guy
2012-07-16 00:57:42 -07:00
committed by android code review

View File

@@ -130,7 +130,7 @@ final class IconUtilities {
int sourceWidth = icon.getIntrinsicWidth();
int sourceHeight = icon.getIntrinsicHeight();
if (sourceWidth > 0 && sourceWidth > 0) {
if (sourceWidth > 0 && sourceHeight > 0) {
// There are intrinsic sizes.
if (width < sourceWidth || height < sourceHeight) {
// It's too big, scale it down.