Skip to content

Commit

Permalink
Fixed #55: Wrong attr in BodyElement.[gs]etLabel()
Browse files Browse the repository at this point in the history
This method was acting on the 'lang' variable instead of 'label',

Thanks to @ccreel for the bug report.
  • Loading branch information
davemckain committed Nov 14, 2014
1 parent 659998a commit 4029009
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -124,10 +124,10 @@ public void setLang(final String lang) {


public String getLabel() {
return getAttributes().getStringAttribute(ATTR_LANG_NAME).getComputedValue();
return getAttributes().getStringAttribute(ATTR_LABEL_NAME).getComputedValue();
}

public void setLabel(final String label) {
getAttributes().getStringAttribute(ATTR_LANG_NAME).setValue(label);
getAttributes().getStringAttribute(ATTR_LABEL_NAME).setValue(label);
}
}

0 comments on commit 4029009

Please sign in to comment.