Commit bfb8e1e1 authored by Michael Natterer's avatar Michael Natterer 😴 Committed by Michael Natterer

call gimp_drawable_invalidate_boundary(floating_sel). Fixes missing

2009-02-07  Michael Natterer  <mitch@gimp.org>

	* app/core/gimpdrawable.c
	(gimp_drawable_attach_floating_sel)
	(gimp_drawable_detach_floating_sel): call
	gimp_drawable_invalidate_boundary(floating_sel). Fixes missing
	selection update after turning a floating selection into a
	layer. It's called redundantly now when adding or deleting a
	floating selection, but that doesn't hurt much.

	* app/core/gimpfloatingselundo.c (gimp_floating_sel_undo_pop):
	don't call it here because we already call above functions.


svn path=/trunk/; revision=27999
parent 7b8a62a2
2009-02-07 Michael Natterer <mitch@gimp.org>
* app/core/gimpdrawable.c
(gimp_drawable_attach_floating_sel)
(gimp_drawable_detach_floating_sel): call
gimp_drawable_invalidate_boundary(floating_sel). Fixes missing
selection update after turning a floating selection into a
layer. It's called redundantly now when adding or deleting a
floating selection, but that doesn't hurt much.
* app/core/gimpfloatingselundo.c (gimp_floating_sel_undo_pop):
don't call it here because we already call above functions.
2009-02-07 Martin Nordholts <martinn@svn.gnome.org>
* app/core/gimpimagemap.c: Move undo tiles updating into a helper
......
......@@ -1814,6 +1814,9 @@ gimp_drawable_attach_floating_sel (GimpDrawable *drawable,
g_printerr ("%s\n", G_STRFUNC);
/* clear the selection */
gimp_drawable_invalidate_boundary (GIMP_DRAWABLE (floating_sel));
gimp_drawable_sync_source_node (drawable, FALSE);
#ifdef __GNUC__
......@@ -1844,4 +1847,7 @@ gimp_drawable_detach_floating_sel (GimpDrawable *drawable,
* invalid.
*/
gimp_viewable_invalidate_preview (GIMP_VIEWABLE (floating_sel));
/* clear the selection */
gimp_drawable_invalidate_boundary (GIMP_DRAWABLE (floating_sel));
}
......@@ -112,9 +112,6 @@ gimp_floating_sel_undo_pop (GimpUndo *undo,
gimp_image_set_active_layer (undo->image, floating_layer);
gimp_image_set_floating_selection (undo->image, floating_layer);
/* clear the selection */
gimp_drawable_invalidate_boundary (GIMP_DRAWABLE (floating_layer));
gimp_drawable_attach_floating_sel (gimp_layer_get_floating_sel_drawable (floating_layer),
floating_layer);
}
......@@ -123,9 +120,6 @@ gimp_floating_sel_undo_pop (GimpUndo *undo,
gimp_drawable_detach_floating_sel (gimp_layer_get_floating_sel_drawable (floating_layer),
floating_layer);
/* clear the selection */
gimp_drawable_invalidate_boundary (GIMP_DRAWABLE (floating_layer));
/* update the pointers */
gimp_layer_set_floating_sel_drawable (floating_layer, NULL);
gimp_image_set_floating_selection (undo->image, NULL);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment