fix rendering of constraints when source is populated

This commit is contained in:
Grahame Grieve 2019-12-17 08:53:23 +11:00
parent 54f8ca7600
commit 41d7c652ec
1 changed files with 1 additions and 1 deletions

View File

@ -3521,7 +3521,7 @@ public class ProfileUtilities extends TranslatingUtilities {
} }
} }
for (ElementDefinitionConstraintComponent inv : definition.getConstraint()) { for (ElementDefinitionConstraintComponent inv : definition.getConstraint()) {
if (!inv.hasSource() || allInvariants) { if (!inv.hasSource() || inv.getSource().equals(profile.getUrl()) || allInvariants) {
if (!c.getPieces().isEmpty()) if (!c.getPieces().isEmpty())
c.addPiece(gen.new Piece("br")); c.addPiece(gen.new Piece("br"));
c.getPieces().add(checkForNoChange(inv, gen.new Piece(null, inv.getKey()+": ", null).addStyle("font-weight:bold"))); c.getPieces().add(checkForNoChange(inv, gen.new Piece(null, inv.getKey()+": ", null).addStyle("font-weight:bold")));