diff options
Diffstat (limited to 'server/src/com/vaadin/ui/Button.java')
-rw-r--r-- | server/src/com/vaadin/ui/Button.java | 2 |
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 9b50b5eebc..7063568f26 100644 --- a/server/src/com/vaadin/ui/Button.java +++ b/server/src/com/vaadin/ui/Button.java @@ -727,7 +727,7 @@ public class Button extends AbstractComponent implements public void writeDesign(Element design, DesignContext designContext) { super.writeDesign(design, designContext); Attributes attr = design.attributes(); - Button def = designContext.getDefaultInstance(this.getClass()); + Button def = (Button) designContext.getDefaultInstance(this); String content = getCaption(); if (content != null) { design.html(content); |