Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(146)

Unified Diff: src/core/SkScalerContext.cpp

Issue 1405583002: Fix text axis alignment calculation (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkScalerContext.cpp
diff --git a/src/core/SkScalerContext.cpp b/src/core/SkScalerContext.cpp
index 35a9b295583f24dca59b516f1c6845548ac31629..29f794a99f1dffeffc1fed64a0ebc1c5e8e67440 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;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698