Enlightenment CVS committal
Author : rbdpngn
Project : e17
Module : libs/etox
Dir : e17/libs/etox/src
Modified Files:
etox.c etox_line.c
Log Message:
Fix some mapping of index to coordinates.
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/etox/src/etox.c,v
retrieving revision 1.75
retrieving revision 1.76
diff -u -3 -r1.75 -r1.76
--- etox.c 13 May 2004 21:46:27 -0000 1.75
+++ etox.c 14 May 2004 04:00:38 -0000 1.76
@@ -818,8 +818,10 @@
for (l = et->lines; l; l = l->next) {
line = l->data;
sum += line->length;
- if (sum > index)
+ if (sum > index) {
+ sum -= line->length;
break;
+ }
}
if (line)
etox_line_index_to_geometry(line, index - sum, x, y,
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/etox/src/etox_line.c,v
retrieving revision 1.35
retrieving revision 1.36
diff -u -3 -r1.35 -r1.36
--- etox_line.c 6 May 2004 05:17:52 -0000 1.35
+++ etox_line.c 14 May 2004 04:00:40 -0000 1.36
@@ -644,7 +644,7 @@
bit = l->data;
length = etox_style_length(bit);
- if ( sum + length < index)
+ if (sum + length > index)
break;
sum += length;
-------------------------------------------------------
This SF.Net email is sponsored by: SourceForge.net Broadband
Sign-up now for SourceForge Broadband and get the fastest
6.0/768 connection for only $19.95/mo for the first 3 months!
http://ads.osdn.com/?ad_id=2562&alloc_id=6184&op=click
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs