From ceaebab422bdd43916734fb8cc0d9c422ce6bb1b Mon Sep 17 00:00:00 2001 From: Artur Signell Date: Wed, 14 Mar 2012 16:19:35 +0200 Subject: [PATCH] Real fix for TabSheet TestBench compatibility --- src/com/vaadin/terminal/gwt/client/ComponentLocator.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/com/vaadin/terminal/gwt/client/ComponentLocator.java b/src/com/vaadin/terminal/gwt/client/ComponentLocator.java index f6aaf3edd3..fa8b3fc179 100644 --- a/src/com/vaadin/terminal/gwt/client/ComponentLocator.java +++ b/src/com/vaadin/terminal/gwt/client/ComponentLocator.java @@ -466,10 +466,10 @@ public class ComponentLocator { continue; } - if (w instanceof VTabsheetPanel && !"0".equals(indexString)) { + if (w instanceof VTabsheetPanel && widgetPosition != 0) { // TabSheetPanel now only contains 1 connector => the index // is always 0 which indicates the widget in the active tab - indexString = "0"; + widgetPosition = 0; } /* -- 2.39.5