Horizontal Line and Undo

  • Hi,

    Inserting Horizontal Line works perfectly, with code:

    Code
    Editor->TextObjects->InsertNewObject(wpobjHorizontalLine, false, false);

    However, Undo doesn't seem to catch it, not even when I enclose it with StartUndoLevel(), EndUndoLevel().

    Latest WPTools 6 demo also shows the same behaviour.

    What is the proper way to achieve inserting and undoing insertion of a Horizontal Line?

    Dex