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.

(I should really try to comment the code a bit so next time around the logic 
would be more self-explanatory…)

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

> 
> 
> On 11/6/14, 1:03 PM, "Harbs" <harbs.li...@gmail.com> wrote:
> 
>> 
>> For some reason, the flowComposer has TextFlowLines beyond the end of the
>> paragraph which it’s trying to compose.
>> BaseCompose.composeParagraphElementIntoLines() should really break out of
>> the loop before this happens (if I’m understanding things correctly), but
>> it’s not.
>> 
> 
> I think that’s the key: how does the flow composer normally know to stop
> getting more TextLines?
> 
> -Alex
> 

Reply via email to