am fa8570bc: am 7026617e: am 1fcb6d3a: Merge "Respect style boundaries when measuring text" into mnc-dev
* commit 'fa8570bcd205859b9068105b389a80de32f7f85d': Respect style boundaries when measuring text
This commit is contained in:
@@ -741,11 +741,11 @@ class TextLine {
|
|||||||
|
|
||||||
if (needWidth || (c != null && (wp.bgColor != 0 || wp.underlineColor != 0 || runIsRtl))) {
|
if (needWidth || (c != null && (wp.bgColor != 0 || wp.underlineColor != 0 || runIsRtl))) {
|
||||||
if (mCharsValid) {
|
if (mCharsValid) {
|
||||||
ret = wp.getRunAdvance(mChars, start, contextEnd, contextStart, contextEnd,
|
ret = wp.getRunAdvance(mChars, start, end, contextStart, contextEnd,
|
||||||
runIsRtl, end);
|
runIsRtl, end);
|
||||||
} else {
|
} else {
|
||||||
int delta = mStart;
|
int delta = mStart;
|
||||||
ret = wp.getRunAdvance(mText, delta + start, delta + contextEnd,
|
ret = wp.getRunAdvance(mText, delta + start, delta + end,
|
||||||
delta + contextStart, delta + contextEnd, runIsRtl, delta + end);
|
delta + contextStart, delta + contextEnd, runIsRtl, delta + end);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user