don't try to get the previous character to position 0

SVN revision: 11208
This commit is contained in:
tsauerbeck 2004-08-12 18:59:03 +00:00 committed by tsauerbeck
parent f4208aa56c
commit 7cde671ea0
1 changed files with 1 additions and 1 deletions

View File

@ -1251,7 +1251,7 @@ evas_string_char_prev_get(const char *str, int pos, int *decoded)
if (decoded) *decoded = 0;
if (!str) return 0;
if (pos < 0) return 0;
if (pos < 1) return 0;
p = pos;
d = evas_common_font_utf8_get_prev((char *)str, &p);
if (decoded) *decoded = d;