fix rendering of slicing in profiles

This commit is contained in:
Grahame Grieve 2020-03-06 16:14:00 +11:00
parent e14ff0eefe
commit fe188da8bd
1 changed files with 4 additions and 2 deletions

View File

@ -3329,8 +3329,10 @@ public class ProfileUtilities extends TranslatingUtilities {
s = "@"+s;
String hint = "";
hint = checkAdd(hint, (element.hasSliceName() ? translate("sd.table", "Slice")+" "+element.getSliceName() : ""));
hint = checkAdd(hint, (hasDef && element.hasSliceName() ? ": " : ""));
hint = checkAdd(hint, !hasDef ? null : gt(element.getDefinitionElement()));
if (hasDef && element.hasDefinition()) {
hint = checkAdd(hint, (hasDef && element.hasSliceName() ? ": " : ""));
hint = checkAdd(hint, !hasDef ? null : gt(element.getDefinitionElement()));
}
Cell left = gen.new Cell(null, ref, s, hint, null);
row.getCells().add(left);
Cell gc = gen.new Cell();