From: <enl...@li...> - 2001-08-19 19:41:20
|
Enlightenment CVS committal Author : redalb Project : e17 Module : libs/etox Dir : e17/libs/etox/src Modified Files: etox_create.c Log Message: K.. that was kinda stupid (broke everything instead of fixing the endless loop) I also changed etox_test_simple a bit.. =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/etox/src/etox_create.c,v retrieving revision 1.2 retrieving revision 1.3 diff -u -3 -r1.2 -r1.3 --- etox_create.c 2001/08/19 17:10:47 1.2 +++ etox_create.c 2001/08/19 19:41:19 1.3 @@ -15,22 +15,10 @@ double *x, double *y, double *w, double *h) { Etox_Object et_obj; - char *todo, *p, *q; + char *todo = NULL, *p, *q; todo = strdup(bits->text->str); - /* If the first word doesn't fit in the etox, then nothing will.. */ - p = etox_str_remove_beginning_spaces(todo); - q = p; - if (strstr(p, " ")) - for ( ; *q != ' '; *q++); - if (!__check_if_fits(e, bits->font, q, *w, bits->style->offset_w)) - { - IF_FREE(p); - IF_FREE(todo); - return; - } - et_obj = _etox_object_new(*x, *y, bits); et_obj->str = strdup(todo); @@ -68,6 +56,7 @@ _etox_object_move(e, et_obj); } + IF_FREE(todo); } static void |