* app/gimage.c (gimage_remove_layer): check whether the removed layer is floating_sel *and* check whether it is active_layer.