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.
This commit is contained in:
dchandler 2003-05-31 12:49:44 +00:00
parent 6f0390c5d6
commit bc9a8f4754

View file

@ -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))) {