Evas text object: Hacked a fix to string size get which fixes elipsis and many other...
authortasn <tasn@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sun, 30 Jan 2011 10:39:16 +0000 (10:39 +0000)
committertasn <tasn@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sun, 30 Jan 2011 10:39:16 +0000 (10:39 +0000)
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@56480 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/canvas/evas_object_text.c

index 227092f..170648a 100644 (file)
@@ -278,7 +278,8 @@ _evas_object_text_vert_advance_get(const Evas_Object *obj,
    return adv;
 }
 
-/* FIXME: doc */
+/* FIXME: returns the advance instead of the width just because it's usuallly
+ * bigger, major hack, should fix. */
 static void
 _evas_object_text_string_size_get(const Evas_Object *obj,
       const Evas_Object_Text *o,
@@ -291,7 +292,7 @@ _evas_object_text_string_size_get(const Evas_Object *obj,
    w = h = 0;
    EINA_INLIST_FOREACH(EINA_INLIST_GET(o->items), it)
      {
-        w += it->w;
+        w += it->adv;
         if (it->h > h)
           {
              h = it->h;