bug-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: XGFont.m patch


From: Adam Fedor
Subject: Re: XGFont.m patch
Date: Fri, 28 Jun 2002 21:40:40 -0600
User-agent: Mozilla/5.0 (X11; U; Linux ppc; en-US; rv:1.0rc2) Gecko/20020513

I added this patch. Thanks - good detective work.

Serg Stoyan wrote:
Hi,

Some time ago i wrote about this problem. Description: while typing non-latin
characters into text controls (NSTextField, NSTexView etc.) insertion
point's position is calculated wrong. Visually, it's placed far and far
away from text's last character. Here is a patch that fixes this
problem.



------------------------------------------------------------------------

--- XGFont.m.orig       Tue May 14 09:19:17 2002
+++ XGFont.m    Thu Jun 27 14:21:57 2002
@@ -368,7 +368,7 @@
if (min1 == 0 && max1 == 0)
         {
-         if (glyph >= min2 && glyph <= max2)
+         if (index >= min2 && index <= max2)
            pc = &(font_info->per_char[index - min2]);
         }
else



--
Adam Fedor, Digital Optics Corp.      | I'm glad I hate spinach, because
http://www.doc.com                    | if I didn't, I'd eat it, and you
                                      | know how I hate the stuff.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]