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:
a01b8fa
)
Evas encoding: Fixed an issue with the return value of prev_get when at the start.
author
Tom Hacohen
<tom@stosb.com>
Wed, 16 Feb 2011 13:17:09 +0000
(13:17 +0000)
committer
Tom Hacohen
<tom@stosb.com>
Wed, 16 Feb 2011 13:17:09 +0000
(13:17 +0000)
SVN revision: 57091
legacy/evas/src/lib/engines/common/evas_encoding.c
patch
|
blob
|
history
diff --git
a/legacy/evas/src/lib/engines/common/evas_encoding.c
b/legacy/evas/src/lib/engines/common/evas_encoding.c
index
cfa389e
..
7653171
100644
(file)
--- a/
legacy/evas/src/lib/engines/common/evas_encoding.c
+++ b/
legacy/evas/src/lib/engines/common/evas_encoding.c
@@
-132,14
+132,14
@@
evas_common_encoding_utf8_get_prev(const char *buf, int *iindex)
int r;
int index = *iindex;
- /* although when index == 0 there's no previous char, we still want to get
- * the current char */
- if (index < 0)
- return 0;
-
/* First obtain the codepoint at iindex */
r = evas_common_encoding_utf8_get_next(buf, &index);
+ /* although when index == 0 there's no previous char, we still want to get
+ * the current char */
+ if (*iindex < 0)
+ return r;
+
/* Next advance iindex to previous codepoint */
index = *iindex;
index--;