fix broken snapshot generation tests

This commit is contained in:
Grahame Grieve 2019-08-05 11:31:42 +10:00
parent 0bd7d4c32a
commit 94dda85240
1 changed files with 2 additions and 2 deletions

View File

@ -2533,13 +2533,13 @@ public class ProfileUtilities extends TranslatingUtilities {
row.setLineColor(0);
boolean hasDef = element != null;
boolean ext = false;
if (s.equals("extension")) {
if (tail(element.getPath()).equals("extension")) {
if (element.hasType() && element.getType().get(0).hasProfile() && extensionIsComplex(element.getType().get(0).getProfile().get(0).getValue()))
row.setIcon("icon_extension_complex.png", HierarchicalTableGenerator.TEXT_ICON_EXTENSION_COMPLEX);
else
row.setIcon("icon_extension_simple.png", HierarchicalTableGenerator.TEXT_ICON_EXTENSION_SIMPLE);
ext = true;
} else if (s.equals("modifierExtension")) {
} else if (tail(element.getPath()).equals("modifierExtension")) {
if (element.hasType() && element.getType().get(0).hasProfile() && extensionIsComplex(element.getType().get(0).getProfile().get(0).getValue()))
row.setIcon("icon_modifier_extension_complex.png", HierarchicalTableGenerator.TEXT_ICON_EXTENSION_COMPLEX);
else