GNOME Bugzilla – Bug 159304
Closing a 2nd view of an image toggles the visibility of an active layer
Last modified: 2005-02-09 09:47:56 UTC
To reproduce: 1. open or create an image with layers 2. create a new view of it 3. select the top layer 4. close the view 5. notice the top layer's visibility has been toggled to off
I can definitely not reproduce this.
Hmm, tried once more and this time it happened. This is strange indeed.
Fixed in CVS: 2004-11-24 Michael Natterer <mitch@gimp.org> * app/gui/gui.c (gui_display_changed): if the active display becomes NULL (e.g. by closing a view), don't leave the user context with an image but no display. Instead, try to find another display of the same image instead and if that fails set the image to NULL. Prevents the various foo_actions_update() functions from being called with a NULL display while there is still an active image in the context. Fixes bug #159304. (Removed #warning about being misplaced from that function because it's a typical piece of ugly glue code that belongs exactly here).
*** Bug 161458 has been marked as a duplicate of this bug. ***
Reopening because the addition of the <Toolbox> UI manager brought back this bug with exactly the same reasons & symptoms.
Fixed again in CVS: 2005-02-08 Michael Natterer <mitch@gimp.org> * app/gui/gui.c (gui_display_changed): if display became NULL (e.g. by closing a view) and we decide to activate another view of the same image, stop the emission of the original "display-changed" signal so it doesn't affect the toolbox' UI manager. Fixes bug #159304.
*** Bug 166753 has been marked as a duplicate of this bug. ***