Revert "app: do not add undo step when clearing an already empty channel."
This reverts commit 9c94072213
.
Such things do not belong into the core but into the GUI.
This commit is contained in:
@ -1317,15 +1317,11 @@ gimp_channel_real_clear (GimpChannel *channel,
|
|||||||
{
|
{
|
||||||
if (push_undo)
|
if (push_undo)
|
||||||
{
|
{
|
||||||
if (! channel->empty)
|
|
||||||
{
|
|
||||||
/* Don't push an undo if the channel was already empty. */
|
|
||||||
if (! undo_desc)
|
if (! undo_desc)
|
||||||
undo_desc = GIMP_CHANNEL_GET_CLASS (channel)->clear_desc;
|
undo_desc = GIMP_CHANNEL_GET_CLASS (channel)->clear_desc;
|
||||||
|
|
||||||
gimp_channel_push_undo (channel, undo_desc);
|
gimp_channel_push_undo (channel, undo_desc);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
gimp_drawable_invalidate_boundary (GIMP_DRAWABLE (channel));
|
gimp_drawable_invalidate_boundary (GIMP_DRAWABLE (channel));
|
||||||
|
Reference in New Issue
Block a user