From eb85b8321bc917169ba26c8fce76b64d2e3dfe81 Mon Sep 17 00:00:00 2001 From: herb Date: Tue, 13 Oct 2015 11:47:54 -0700 Subject: [PATCH] Fix text axis alignment calculation BUG=skia: Review URL: https://codereview.chromium.org/1405583002 --- src/core/SkScalerContext.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/SkScalerContext.cpp b/src/core/SkScalerContext.cpp index 35a9b29558..29f794a99f 100644 --- a/src/core/SkScalerContext.cpp +++ b/src/core/SkScalerContext.cpp @@ -829,7 +829,7 @@ SkAxisAlignment SkComputeAxisAlignmentForHText(const SkMatrix& matrix) { if (0 == matrix[SkMatrix::kMSkewY]) { return kX_SkAxisAlignment; } - if (0 == matrix[SkMatrix::kMScaleX]) { + if (0 == matrix[SkMatrix::kMSkewX]) { return kY_SkAxisAlignment; } return kNone_SkAxisAlignment;