Text shortening fix corretion.

SVN revision: 27067
This commit is contained in:
Kim Woelders 2006-11-12 11:00:33 +00:00
parent c082b8ffe6
commit 05da019e0f
1 changed files with 1 additions and 2 deletions

View File

@ -375,11 +375,10 @@ TextstateTextFitMB(TextState * ts, char **ptext, int *pw, int textwidth_limit)
{
int mlen;
mlen = mblen(text, MB_CUR_MAX);
mlen = EwcWcsToStr(wc_line, 1, new_line, MB_CUR_MAX);
if (mlen < 0)
mlen = 1;
memcpy(new_line, text, mlen);
strcpy(new_line + mlen, "...");
break;
}