app: avoid CRITICAL when moving empty floating selection

This commit is contained in:
Ell 2017-12-07 08:38:22 -05:00
parent f28cb1c511
commit bf8b2f2e6b

View file

@ -764,12 +764,15 @@ gimp_edit_selection_tool_draw (GimpDrawTool *draw_tool)
break;
case GIMP_TRANSLATE_MODE_FLOATING_SEL:
gimp_draw_tool_add_boundary (draw_tool,
edit_select->segs_in,
edit_select->num_segs_in,
NULL,
edit_select->cuml_x,
edit_select->cuml_y);
if (edit_select->segs_in)
{
gimp_draw_tool_add_boundary (draw_tool,
edit_select->segs_in,
edit_select->num_segs_in,
NULL,
edit_select->cuml_x,
edit_select->cuml_y);
}
break;
}