aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools
diff options
context:
space:
mode:
authorGravatar ethannicholas <ethannicholas@google.com>2016-01-29 08:02:34 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2016-01-29 08:02:34 -0800
commitc05f7c3d57156940bc5c27bfd01e432c0b232a39 (patch)
tree6b04483df5f49b6adda8ee4f19d0b2f31ccbc22b /tools
parent4d9eaea1740568548c7a954fdc3b4f7ee8df1e49 (diff)
fix for skiaserve build error
Diffstat (limited to 'tools')
-rw-r--r--tools/json/SkJSONRenderer.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/json/SkJSONRenderer.cpp b/tools/json/SkJSONRenderer.cpp
index e84a1ed692..a830fe0fb5 100644
--- a/tools/json/SkJSONRenderer.cpp
+++ b/tools/json/SkJSONRenderer.cpp
@@ -197,6 +197,7 @@ void Renderer::getPaint(Json::Value& command, SkPaint* result) {
SkASSERT(false);
textAlign = SkPaint::kLeft_Align;
}
+ result->setTextAlign(textAlign);
}
if (jsonPaint.isMember(SKJSONCANVAS_ATTRIBUTE_TEXTSIZE)) {
float textSize = jsonPaint[SKJSONCANVAS_ATTRIBUTE_TEXTSIZE].asFloat();