diff options
Diffstat (limited to 'src/core/SkCanvas.cpp')
-rw-r--r-- | src/core/SkCanvas.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/SkCanvas.cpp b/src/core/SkCanvas.cpp index 8fc431864d..1da6e28f1f 100644 --- a/src/core/SkCanvas.cpp +++ b/src/core/SkCanvas.cpp @@ -2489,8 +2489,8 @@ void SkCanvas::onDrawTextRSXform(const void* text, size_t len, const SkRSXform x while (iter.next()) { fScratchGlyphRunBuilder->drawTextAtOrigin(paint, text, len); auto list = fScratchGlyphRunBuilder->useGlyphRunList(); - if (!list->empty()) { - auto glyphRun = (*list)[0]; + if (!list.empty()) { + auto glyphRun = list[0]; iter.fDevice->drawGlyphRunRSXform(&glyphRun, xform); } } |