fixed unmapped characters, added gitignore

This commit is contained in:
Edward Jakubowski
2014-03-12 21:55:43 -04:00
parent 3f5cd65610
commit 4f65c0b921
3 changed files with 9 additions and 4 deletions

View File

@@ -250,8 +250,8 @@ public class SynthuseDlg extends JFrame {
return; //don't save bad xpath to combobox
if (config.xpathList == null)
config.xpathList = "";
if (!config.xpathList.contains(xpathItem + "<EFBFBD>")){
config.xpathList += xpathItem + "<EFBFBD>";
if (!config.xpathList.contains(xpathItem + "\u00ba")){
config.xpathList += xpathItem + "\u00ba";
refreshDatabinding();
cmbXpath.setSelectedItem(xpathItem);
}
@@ -413,7 +413,7 @@ public class SynthuseDlg extends JFrame {
public void refreshDatabinding() {
if (config.xpathList != null)
cmbXpath.setModel(new DefaultComboBoxModel<String>(config.xpathList.split("<EFBFBD>")));
cmbXpath.setModel(new DefaultComboBoxModel<String>(config.xpathList.split("\u00ba")));
if (config.xpathHightlight != null)
XmlEditorKit.TAG_HIGHLIGHTED = config.xpathHightlight;
}