wxUiEditor icon indicating copy to clipboard operation
wxUiEditor copied to clipboard

Bug: ImageHandler doesn't re-initialize if Images node deleted

Open KeyWorksRW opened this issue 2 years ago • 1 comments

Description:

If the Images node is deleted, the ImageHandler class (image_handler.h) needs to be cleared, and re-initialized. Without doing this, code generation is broken because it is still assuming the images are in an Image form.

KeyWorksRW avatar Nov 15 '23 13:11 KeyWorksRW

A related problem which is a bit harder to reproduce, is when you have an image shared between two forms and not within an Images List. If you delete the image in one form, the image remains in the embed array, but the form the image is contained in does not get changed to the remaining form that uses it. Since we still only allow one image definition per project, it is imperative that the form pointer be changed when an image is removed from a form.

KeyWorksRW avatar Dec 13 '23 21:12 KeyWorksRW