]> source.dussan.org Git - vaadin-framework.git/commitdiff
Properly resolve icon urls in ordered layout (#9555)
authorLeif Åstrand <leif@vaadin.com>
Wed, 12 Sep 2012 06:30:10 +0000 (09:30 +0300)
committerLeif Åstrand <leif@vaadin.com>
Wed, 12 Sep 2012 06:30:10 +0000 (09:30 +0300)
client/src/com/vaadin/client/ui/orderedlayout/AbstractOrderedLayoutConnector.java

index d7b05207849d34384f345d607705dde3aea41784..7092109d115d5b95c617a809c7a289020a5140a9 100644 (file)
@@ -236,7 +236,7 @@ public abstract class AbstractOrderedLayoutConnector extends
         String caption = child.getState().caption;
         URLReference iconUrl = child.getState().resources
                 .get(ComponentConstants.ICON_RESOURCE);
-        String iconUrlString = iconUrl != null ? iconUrl.toString() : null;
+        String iconUrlString = iconUrl != null ? iconUrl.getURL() : null;
         List<String> styles = child.getState().styles;
         String error = child.getState().errorMessage;
         boolean showError = error != null;