]> source.dussan.org Git - vaadin-framework.git/commitdiff
removed slash before first style name
authorMatti Tahvonen <matti.tahvonen@itmill.com>
Tue, 14 Aug 2007 12:11:30 +0000 (12:11 +0000)
committerMatti Tahvonen <matti.tahvonen@itmill.com>
Tue, 14 Aug 2007 12:11:30 +0000 (12:11 +0000)
svn changeset:2005/svn branch:trunk

src/com/itmill/toolkit/ui/AbstractComponent.java

index 9015169e437cc5f6ae9dd360956ee71583c7ccf3..66ef7e209048f6b4808ae1d2adf22c099b4ddf23 100644 (file)
@@ -163,8 +163,11 @@ public abstract class AbstractComponent implements Component, MethodEventSource
        public String getStyle() {
                String s = "";
                if(styles != null) {
-                       for(Iterator it = styles.iterator();it.hasNext();)
-                               s += " " + (String) it.next();
+                       for(Iterator it = styles.iterator();it.hasNext();) {
+                               s += (String) it.next();
+                               if(it.hasNext())
+                                       s += " ";
+                       }
                }
                return s;
        }