projects
/
platform
/
upstream
/
efl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cf46d00
)
Evas textblock: Fixed range geometry with 1 format at the eol.
author
Tom Hacohen
<tom@stosb.com>
Mon, 20 Aug 2012 11:00:16 +0000
(11:00 +0000)
committer
Tom Hacohen
<tom@stosb.com>
Mon, 20 Aug 2012 11:00:16 +0000
(11:00 +0000)
Fixed an issue with range geometry when we are getting the geometry of only
the last format of a line.
SVN revision: 75460
legacy/evas/src/lib/canvas/evas_object_textblock.c
patch
|
blob
|
history
diff --git
a/legacy/evas/src/lib/canvas/evas_object_textblock.c
b/legacy/evas/src/lib/canvas/evas_object_textblock.c
index
f768c61
..
0943bb5
100644
(file)
--- a/
legacy/evas/src/lib/canvas/evas_object_textblock.c
+++ b/
legacy/evas/src/lib/canvas/evas_object_textblock.c
@@
-8841,6
+8841,15
@@
_evas_textblock_cursor_range_in_line_geometry_get(
tr->w = w;
}
}
+ else if ((it1 == it2) && (it1->type == EVAS_TEXTBLOCK_ITEM_FORMAT))
+ {
+ tr = calloc(1, sizeof(Evas_Textblock_Rectangle));
+ rects = eina_list_append(rects, tr);
+ tr->x = ln->x + it1->x;
+ tr->y = ln->par->y + ln->y;
+ tr->h = ln->h;
+ tr->w = it1->w;
+ }
else if (it1 != it2)
{
/* Get the middle items */