summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Sinclair <dj2>2005-07-23 02:10:24 +0000
committerDan Sinclair <dj2@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>2005-07-23 02:10:24 +0000
commitb474b11ac2ca64c09ceb99bb464aed78d374b3c1 (patch)
tree02c30e130b0014448a91aab9ed6ad2a70f643467
parentacc0701e107ded6d7b4386564a3e78957ce354d6 (diff)
- evas_object_textblock_line_get was returning the geometry of the current
cursor position instead of the passed in line. SVN revision: 15871
-rw-r--r--legacy/evas/src/lib/canvas/evas_object_textblock.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/legacy/evas/src/lib/canvas/evas_object_textblock.c b/legacy/evas/src/lib/canvas/evas_object_textblock.c
index 2d9b0d1e54..91f64cc359 100644
--- a/legacy/evas/src/lib/canvas/evas_object_textblock.c
+++ b/legacy/evas/src/lib/canvas/evas_object_textblock.c
@@ -1706,8 +1706,6 @@ evas_object_textblock_layout_node_pos_get(Evas_Object *obj, int pos, int *pstart
1706 return lnode; 1706 return lnode;
1707} 1707}
1708 1708
1709/* unused */
1710#if 0
1711static Layout_Node * 1709static Layout_Node *
1712evas_object_textblock_layout_node_line_get(Evas_Object *obj, int line) 1710evas_object_textblock_layout_node_line_get(Evas_Object *obj, int line)
1713{ 1711{
@@ -1731,7 +1729,6 @@ evas_object_textblock_layout_node_line_get(Evas_Object *obj, int line)
1731 } 1729 }
1732 return NULL; 1730 return NULL;
1733} 1731}
1734#endif
1735 1732
1736/* private methods for textblock objects */ 1733/* private methods for textblock objects */
1737static void evas_object_textblock_init(Evas_Object *obj); 1734static void evas_object_textblock_init(Evas_Object *obj);
@@ -2055,7 +2052,6 @@ evas_object_textblock_line_get(Evas_Object *obj, int line, Evas_Coord *lx, Evas_
2055{ 2052{
2056 Evas_Object_Textblock *o; 2053 Evas_Object_Textblock *o;
2057 Layout_Node *lnode; 2054 Layout_Node *lnode;
2058 int ps;
2059 2055
2060 MAGIC_CHECK(obj, Evas_Object, MAGIC_OBJ); 2056 MAGIC_CHECK(obj, Evas_Object, MAGIC_OBJ);
2061 return 0; 2057 return 0;
@@ -2066,7 +2062,7 @@ evas_object_textblock_line_get(Evas_Object *obj, int line, Evas_Coord *lx, Evas_
2066 MAGIC_CHECK_END(); 2062 MAGIC_CHECK_END();
2067 if (o->format.dirty) 2063 if (o->format.dirty)
2068 evas_object_textblock_format_calc(obj); 2064 evas_object_textblock_format_calc(obj);
2069 lnode = evas_object_textblock_layout_node_pos_get(obj, o->pos, &ps); 2065 lnode = evas_object_textblock_layout_node_line_get(obj, line);
2070 if (lnode) 2066 if (lnode)
2071 { 2067 {
2072 Evas_Object_List *l; 2068 Evas_Object_List *l;