]> source.dussan.org Git - vaadin-framework.git/commitdiff
fixes bug when updating formlayout contents
authorMatti Tahvonen <matti.tahvonen@itmill.com>
Wed, 28 May 2008 07:59:44 +0000 (07:59 +0000)
committerMatti Tahvonen <matti.tahvonen@itmill.com>
Wed, 28 May 2008 07:59:44 +0000 (07:59 +0000)
svn changeset:4655/svn branch:trunk

src/com/itmill/toolkit/terminal/gwt/client/ui/IFormLayout.java

index fd082e5fa00a07a0daf9a56fefd3ce670f05390b..6977f945dd58db0aa7e5b27891083b9175158d1e 100644 (file)
@@ -51,8 +51,8 @@ public class IFormLayout extends FlexTable implements Container {
                 error = new ErrorFlag();
                 componentToError.put(p, error);
             }
-            final Paintable oldComponent = (Paintable) getWidget(i, 1);
             prepareCell(i, 2);
+            final Paintable oldComponent = (Paintable) getWidget(i, 2);
             if (oldComponent == null) {
                 setWidget(i, 2, (Widget) p);
             } else if (oldComponent != p) {