empty childpar + IsProtected

  • WPTools version 6.13

    Assume:

    Code
    <p> [wpNoOverwrite, wpNoInsertPar, wpNoInsertChar, wpNoDeletePar, wpNoDeleteChar]
      <p/> [wpNoInsertPar, wpNoDeletePar]
    </p>

    Assume:
    <childpar>->CharCount = 0
    aCursor.active_paragraph = <childpar>
    aCursor.active_posinpar = 0

    If I try to enter some text, IsProtected is called with the parent paragraph as argument! Checking SetChar in TWPRTFEnginePaint.InputString reveals that for some reason the current paragraph can not be used to check protection if CharCount = 0. What's happening here? If this is a WONTFIX, are there any suprises if I just remove those while-do loops?

    Regards
    patrik.nyborg(a)genicore.se