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

Commit e7934a65 authored by Raph Levien's avatar Raph Levien Committed by Android (Google) Code Review
Browse files

Merge "Apply contextStart consistently in getRunAdvance" into mnc-dev

parents 844fbff8 36ff86c9
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1055,7 +1055,8 @@ public:
        // TODO performance: optimize JNI array access
        jchar* textArray = env->GetCharArrayElements(text, NULL);
        jfloat result = doRunAdvance(paint, typeface, textArray + contextStart,
                start - contextStart, end - start, contextEnd - contextStart, isRtl, offset);
                start - contextStart, end - start, contextEnd - contextStart, isRtl,
                offset - contextStart);
        env->ReleaseCharArrayElements(text, textArray, JNI_ABORT);
        return result;
    }