summaryrefslogtreecommitdiffstats
path: root/server/src/com/vaadin/ui/Panel.java
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/com/vaadin/ui/Panel.java')
-rw-r--r--server/src/com/vaadin/ui/Panel.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/src/com/vaadin/ui/Panel.java b/server/src/com/vaadin/ui/Panel.java
index b0242cc32d..0c2a3f580b 100644
--- a/server/src/com/vaadin/ui/Panel.java
+++ b/server/src/com/vaadin/ui/Panel.java
@@ -365,7 +365,7 @@ public class Panel extends AbstractSingleComponentContainer implements
public void writeDesign(Element design, DesignContext designContext) {
super.writeDesign(design, designContext);
// handle tabindex
- Panel def = designContext.getDefaultInstance(this.getClass());
+ Panel def = (Panel) designContext.getDefaultInstance(this);
DesignAttributeHandler.writeAttribute("tabindex", design.attributes(),
getTabIndex(), def.getTabIndex(), Integer.class);
}