mirror of https://github.com/GNOME/gimp.git
Bug 766706: Deleting text layer content does not clean canvas
This commit is contained in:
parent
5ca2794d40
commit
4eef125153
|
@ -694,8 +694,11 @@ gimp_text_layer_render (GimpTextLayer *layer)
|
|||
g_free (tmp);
|
||||
}
|
||||
|
||||
if (! name)
|
||||
name = g_strdup (_("Empty Text Layer"));
|
||||
if (! name || ! name[0])
|
||||
{
|
||||
g_free (name);
|
||||
name = g_strdup (_("Empty Text Layer"));
|
||||
}
|
||||
|
||||
if (gimp_item_is_attached (item))
|
||||
{
|
||||
|
|
|
@ -611,7 +611,11 @@ gimp_text_layout_position (GimpTextLayout *layout)
|
|||
#endif
|
||||
|
||||
if (ink.width < 1 || ink.height < 1)
|
||||
return;
|
||||
{
|
||||
layout->extents.width = 1;
|
||||
layout->extents.height = logical.height;
|
||||
return;
|
||||
}
|
||||
|
||||
x1 = MIN (ink.x, logical.x);
|
||||
y1 = MIN (ink.y, logical.y);
|
||||
|
|
Loading…
Reference in New Issue