From 0bacdcc22999e53ba61e91c32e5d67b3ec61e43e Mon Sep 17 00:00:00 2001 From: amontano Date: Thu, 17 Apr 2003 11:12:59 +0000 Subject: [PATCH] fixed the paste problem for the translation tool --- 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 dfb9068..0a65371 100644 --- a/source/org/thdl/tib/input/DuffPane.java +++ b/source/org/thdl/tib/input/DuffPane.java @@ -1043,7 +1043,7 @@ public void paste(int offset) { Assumes that if roman is disabled and you are pasting something in RTF but is not TibetanMachineWeb it most be wylie. */ - if (!sd.getFont((sd.getCharacterElement(0).getAttributes())).getFamily().equals("TibetanMachineWeb") && !isRomanEnabled && contents.isDataFlavorSupported(DataFlavor.stringFlavor)) + if (!sd.getFont((sd.getCharacterElement(0).getAttributes())).getFamily().startsWith("TibetanMachineWeb") && !isRomanEnabled && contents.isDataFlavorSupported(DataFlavor.stringFlavor)) { String data = (String)contents.getTransferData(DataFlavor.stringFlavor); toTibetanMachineWeb(data, offset);