From 19464e028ada7e625ceabeb774285717fe583712 Mon Sep 17 00:00:00 2001 From: glx Date: Tue, 9 May 2006 15:36:48 +0000 Subject: (svn r4807) - Fix: win32 compilation was broken by r4802 --- win32.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/win32.c b/win32.c index b5eb4e462..1073c4381 100644 --- a/win32.c +++ b/win32.c @@ -1227,8 +1227,8 @@ bool InsertTextBufferClipboard(Textbuf *tb) dataptr = data; for (; IsValidAsciiChar(*dataptr) && (tb->length + length) < (tb->maxlength - 1) && - (tb->maxwidth == 0 || width + tb->width + GetCharacterWidth((byte)*dataptr) <= tb->maxwidth); dataptr++) { - width += GetCharacterWidth((byte)*dataptr); + (tb->maxwidth == 0 || width + tb->width + GetCharacterWidth(FS_NORMAL, (byte)*dataptr) <= tb->maxwidth); dataptr++) { + width += GetCharacterWidth(FS_NORMAL, (byte)*dataptr); length++; } -- cgit v1.2.3-70-g09d2