[fixed] Followup on TextBuffer Fix (1 Viewer)

offbyone

Development Group
  • Team MediaPortal
  • April 26, 2008
    3,989
    3,712
    Stuttgart
    Home Country
    Germany Germany
    We made a small mistake in the fix for the endless loop. (Screenshot - Notice how it no longer wraps when inside the word, but simply stops)
    Code:
    Changing it to this should be better:
    // if not even one letter fits into the available space, stop now
    if (nextIndex == 0)
      break;
    I tried it that way and now the wrapping inside words works again, and the endless loop does not occur.
     

    offbyone

    Development Group
  • Team MediaPortal
  • April 26, 2008
    3,989
    3,712
    Stuttgart
    Home Country
    Germany Germany
    • Thread starter
    • Moderator
    • #2
    Albert78 provided a better fix:

    Code:
    if (nextIndex == lastIndex)
                break;
     

    Users who are viewing this thread

    Top Bottom