From bc9a8f4754f660c023a3a811822feddb60661d8f Mon Sep 17 00:00:00 2001 From: dchandler Date: Sat, 31 May 2003 12:49:44 +0000 Subject: [PATCH] Jeff C. H. Wu found a bug whereby typing 'cuig' just after starting Jskad fails (by producing 'cug') although typing 'kcuig' succeeds. This is now fixed. --- source/org/thdl/tib/input/DuffPane.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/org/thdl/tib/input/DuffPane.java b/source/org/thdl/tib/input/DuffPane.java index 7426eb7..04ce61a 100644 --- a/source/org/thdl/tib/input/DuffPane.java +++ b/source/org/thdl/tib/input/DuffPane.java @@ -772,7 +772,7 @@ public class DuffPane extends TibetanPane implements FocusListener { DuffCode dc_1 = null; DuffCode dc_2 = new DuffCode(fontNum, c2); - if (caret.getDot() > 2) { + if (caret.getDot() >= 2) { attr = getTibDoc().getCharacterElement(caret.getDot()-2).getAttributes(); fontName = StyleConstants.getFontFamily(attr); if (0 != (fontNum = TibetanMachineWeb.getTMWFontNumber(fontName))) {