Problem with serialization and undo/redo

  • Andreas Krinke

    Andreas Krinke - 2009-06-15


    At first I want to thank you for this great framework!

    I have a problem with a class derived from wxSFLineShape I'm using for connections. It has two member variables, a pointer to a RoundRectShape and one to a TextShape. The rect is a child of the connection and the text is a child of the rect.

    The two members have serialization disabled and have XS_SERIALIZE_DYNAMIC_OBJECT_NO_CREATE set.

    In the copy constructor, they are cloned and added as childs.

    The problem is, after the creation of the connection and a undo and redo, the TextShape is no longer visible. Not like Show(false) -- just not there.

    I have uploaded the source of the class:

    I'm really stuck here :/


    • Andreas Krinke

      Andreas Krinke - 2009-06-15


      I've compiled the latest SVN revision (214) and the error seems to be gone!

      FWIW, the old version was 1.7.2b.



Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.

No, thanks