Commit 238c1035 authored by Ell's avatar Ell

app: fix text tool frame position when undoing move operation

While editing a text layer with the text tool, update the layer's
frame when the layer moves, which most notably happens when
undoing/redoing a move operation while the text tool is active.
parent a03183b2
......@@ -1327,6 +1327,18 @@ gimp_text_tool_layer_notify (GimpTextLayer *layer,
if (! layer->text)
gimp_tool_control (tool, GIMP_TOOL_ACTION_HALT, tool->display);
}
else if (! strcmp (pspec->name, "offset-x") ||
! strcmp (pspec->name, "offset-y"))
{
if (gimp_item_is_attached (GIMP_ITEM (layer)))
{
gimp_text_tool_block_drawing (text_tool);
gimp_text_tool_frame_item (text_tool);
gimp_text_tool_unblock_drawing (text_tool);
}
}
}
static gboolean
......
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