Fix text axis alignment calculation

BUG=skia:

Review URL: https://codereview.chromium.org/1405583002
This commit is contained in:
herb 2015-10-13 11:47:54 -07:00 committed by Commit bot
parent 9ae8fe1c60
commit eb85b8321b

View File

@ -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;