I think it’s _curElementOffset which gets updated.

It does look like something is getting out of sync. I’m just not sure yet what. 
This is one of those areas that’s way too fragile IMHO… Every time I’ve run 
into these kinds of issues it’s taken me days to figure out exactly what’s off.

On Nov 6, 2014, at 11:57 PM, Alex Harui <aha...@adobe.com> wrote:

> 
> 
> On 11/6/14, 1:50 PM, "Harbs" <harbs.li...@gmail.com> wrote:
> 
>> Well, it does this:
>> 
>> if (_curElementStart == _curParaStart+_curParaElement.textLength)
>> break;
>> 
>> to normally break out of the loop.
>> 
>> I’m a bit fuzzy though on how it handles SpanElements that span multiple
>> lines and how to break out of that.
> 
> Doesn’t _curElementStart get updated after each textLine is composed?
> _curElementStart might be getting out of sync.
> 
> -Alex
> 

Reply via email to