aboutsummaryrefslogtreecommitdiffhomepage
path: root/gm/verttext2.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'gm/verttext2.cpp')
-rw-r--r--gm/verttext2.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/gm/verttext2.cpp b/gm/verttext2.cpp
index d7da041896..a0ebd01812 100644
--- a/gm/verttext2.cpp
+++ b/gm/verttext2.cpp
@@ -76,7 +76,7 @@ protected:
paint.setTypeface(std::move(family));
paint.setTextSize(textHeight);
- canvas->drawText(string.c_str(), string.size(), y,
+ canvas->drawString(string, y,
SkIntToScalar(alignment == SkPaint::kLeft_Align ? 10 : 240),
paint);
y += textHeight;