Index: src/core/SkRRect.cpp |
diff --git a/src/core/SkRRect.cpp b/src/core/SkRRect.cpp |
index 788bf1d9a693c98084249ed08ad9ed9e32a9801a..f2927644daabd40dbbe79f6964f2dfe305e56748 100644 |
--- a/src/core/SkRRect.cpp |
+++ b/src/core/SkRRect.cpp |
@@ -69,7 +69,7 @@ void SkRRect::setNinePatch(const SkRect& rect, SkScalar leftRad, SkScalar topRad |
scale = SkScalarDiv(rect.width(), leftRad + rightRad); |
} |
if (topRad + bottomRad > rect.height()) { |
- scale = SkMinScalar(scale, SkScalarDiv(rect.width(), leftRad + rightRad)); |
+ scale = SkMinScalar(scale, SkScalarDiv(rect.height(), topRad + bottomRad)); |
} |
if (scale < SK_Scalar1) { |