textpath: do not process line if failed to allocate segment

This commit is contained in:
Thiep Ha 2017-09-05 12:02:01 +09:00
parent b55cb4feb1
commit 967e94dc6b
1 changed files with 1 additions and 0 deletions

View File

@ -380,6 +380,7 @@ _path_data_get(Eo *obj, Efl_Ui_Textpath_Data *pd, Eina_Bool set_min)
ERR("Failed to allocate segment");
px0 = px1;
py0 = py1;
continue;
}
seg->type = EFL_GFX_PATH_COMMAND_TYPE_LINE_TO;
seg->line.start.x = px0;