Fixed progress bar color changing

This commit is contained in:
2019-01-26 09:53:16 +01:00
parent a5039f542f
commit 7ce8b83d16
10 changed files with 100 additions and 63 deletions

View File

@@ -971,7 +971,7 @@ public class XML_processing {
}
// taxonomy node
else if (qName.equalsIgnoreCase("term")) {
else if (stats.getCorpus().getTaxonomy().size() > 0 && qName.equalsIgnoreCase("term")) {
// there are some term nodes at the beginning that are of no interest to us
// they differ by not having the attribute "ref", so test will equal null
Attribute tax = startElement.getAttributeByName(QName.valueOf("ref"));
@@ -983,7 +983,7 @@ public class XML_processing {
// Tax taxonomy = new Tax();
// currentFiletaxonomyLong.add(taxonomy.getLongTaxonomyName(currentFiletaxonomyElement));
}
} else if (qName.equalsIgnoreCase("catRef")) {
} else if (stats.getCorpus().getTaxonomy().size() > 0 && qName.equalsIgnoreCase("catRef")) {
// get value from attribute target
Attribute tax = startElement.getAttributeByName(QName.valueOf("target"));