Evas textblock: Fixed a small calculation in format item's size calculation. Was...
authortasn <tasn@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Tue, 15 Feb 2011 16:50:14 +0000 (16:50 +0000)
committertasn <tasn@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Tue, 15 Feb 2011 16:50:14 +0000 (16:50 +0000)
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@57056 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/canvas/evas_object_textblock.c

index ae8c5d5..a70a5bb 100644 (file)
@@ -3013,13 +3013,10 @@ _layout_do_format(const Evas_Object *obj __UNUSED__, Ctxt *c,
                   else if ((!strcmp(item, "\t")) || (!strcmp(item, "\\t")))
                     {
                        Evas_Object_Textblock_Format_Item *fi;
-                       int x2;
 
-                       x2 = c->x + fmt->tabstops;
                        fi = _layout_format_item_add(c, n, item, fmt);
-                       fi->parent.w = fi->parent.adv = x2 - c->x;
+                       fi->parent.w = fi->parent.adv = fmt->tabstops;
                        fi->formatme = 1;
-                       c->x = x2;
                     }
                }
           }