summaryrefslogtreecommitdiffstats
path: root/server/src/com/vaadin/ui/Button.java
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/com/vaadin/ui/Button.java')
-rw-r--r--server/src/com/vaadin/ui/Button.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/src/com/vaadin/ui/Button.java b/server/src/com/vaadin/ui/Button.java
index e5ea05a1d3..5c12f20479 100644
--- a/server/src/com/vaadin/ui/Button.java
+++ b/server/src/com/vaadin/ui/Button.java
@@ -584,7 +584,7 @@ public class Button extends AbstractFocusable implements
} else {
// content is not intended to be interpreted as HTML,
// so html entities need to be decoded
- content = DesignFormatter.unencodeFromTextNode(design.html());
+ content = DesignFormatter.decodeFromTextNode(design.html());
}
setCaption(content);
if (attr.hasKey("icon-alt")) {