]> source.dussan.org Git - vaadin-framework.git/commitdiff
Fix an invalid cast from Widget to VPaintableWidget (#8324)
authorLeif Åstrand <leif@vaadin.com>
Tue, 31 Jan 2012 11:03:58 +0000 (13:03 +0200)
committerLeif Åstrand <leif@vaadin.com>
Tue, 31 Jan 2012 11:03:58 +0000 (13:03 +0200)
src/com/vaadin/terminal/gwt/client/ui/VMeasuringOrderedLayout.java

index 817cf9bfe0f5d5536abd4a8e9743d43db70ee2a0..5c5f67bf180da19477358155111df15d4acf232a 100644 (file)
@@ -117,7 +117,8 @@ public class VMeasuringOrderedLayout extends ComplexPanel implements Container,
             // Remove the wrapper
             getElement().removeChild(wrapper);
 
-            client.unregisterPaintable((VPaintableWidget) widget);
+            client.unregisterPaintable(VPaintableMap.get(client).getPaintable(
+                    widget));
         }
 
         int bitMask = uidl.getIntAttribute("margins");