Gimp Undo System
Hello,
I'm changing the content of an image using pixel_region_set_row().
After that, I want to introduce my changes in the Undo Stack.
So, I start an undogroup with gimp_image_undo_group_start (image,
GIMP_UNDO_GROUP_PAINT, "test").
After, I call the function gimp_drawable_push_undo(drawable, NULL, x1, y1,
x2,y2,tilemanager , TRUE).
I finish the undo group with gimp_image_undo_group_end(image).
When I start to draw, "test" is added to the stack (I see it in the undo
window).
But when I do ctrl+z, nothing happens.
With gdb and backtrace, I see that when I draw, after the group is created,
gimp_image_undo_push is called is called before gimp_drawable_push_undo.
I add it but there is no changes.
Does anybody have an idea of what is wrong?
Kind Regards,
Radhwan