Enlightenment CVS committal

Author  : raster
Project : e17
Module  : libs/edje

Dir     : e17/libs/edje/src/lib


Modified Files:
        edje_calc.c 


Log Message:


gawd that was bad!!!!

===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/edje/src/lib/edje_calc.c,v
retrieving revision 1.42
retrieving revision 1.43
diff -u -3 -r1.42 -r1.43
--- edje_calc.c 13 Oct 2004 07:05:28 -0000      1.42
+++ edje_calc.c 22 Oct 2004 07:42:37 -0000      1.43
@@ -206,7 +206,6 @@
        ep->calculated = FLAG_NONE;
        ep->calculating = FLAG_NONE;
      }
-//   printf("----\n");
    for (l = ed->parts; l; l = l->next)
      {
        Edje_Real_Part *ep;
@@ -214,7 +213,6 @@
        ep = l->data;
        if (ep->calculated != FLAG_XY)
          _edje_part_recalc(ed, ep, (~ep->calculated) & FLAG_XY);
-//     printf("%x\n", ep->calculated);
      }
    ed->dirty = 0;
    if (!ed->calc_only) ed->recalc = 0;
@@ -1044,9 +1042,19 @@
                  imid = evas_list_nth(ep->param2.description->image.tween_list, 
image_num - 1);
                  if (imid) image_id = imid->id;
               }
-            
-            snprintf(buf, sizeof(buf), "images/%i", image_id);
-            evas_object_image_file_set(ep->object, ed->file->path, buf);
+            if (image_id < 0)
+              {
+                 printf("EDJE ERROR: part \"%s\" has description, \"%s\" %3.3f with a 
missing image id!!!\n",
+                        ep->part->name,
+                        ep->param1.description->state.name,
+                        ep->param1.description->state.value
+                        );
+              }
+            else
+              {
+                 snprintf(buf, sizeof(buf), "images/%i", image_id);
+                 evas_object_image_file_set(ep->object, ed->file->path, buf);
+              }
             evas_object_color_set(ep->object, p3.color.r, p3.color.g, p3.color.b, 
p3.color.a);
             if (p3.visible) evas_object_show(ep->object);
             else evas_object_hide(ep->object);




-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to