Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bacaa1d1 authored by Mike Reed's avatar Mike Reed Committed by Leon Scroggins
Browse files

reset path before append glyph outlines, to match old SkPaint behavior

Bug: 123503704
Bug: 123541872
Test: make and open Maps

Change-Id: I2fed9518e84bcd8124b9a8da1b16f3f06246c1e1
parent ae13a1f8
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -73,6 +73,7 @@ static JMetricsID gFontMetricsInt_fieldID;

static void getPosTextPath(const SkFont& font, const uint16_t glyphs[], int count,
                           const SkPoint pos[], SkPath* dst) {
    dst->reset();
    struct Rec {
        SkPath* fDst;
        const SkPoint* fPos;