OSDN Git Service

Missing background in copy ctor.
authorNathanSweet <nathan.sweet@gmail.com>
Thu, 8 Aug 2013 20:56:41 +0000 (22:56 +0200)
committerNathanSweet <nathan.sweet@gmail.com>
Thu, 8 Aug 2013 20:56:46 +0000 (22:56 +0200)
gdx/src/com/badlogic/gdx/scenes/scene2d/ui/Label.java
gdx/src/com/badlogic/gdx/utils/JsonValue.java

index 2cf6524..9473db9 100644 (file)
@@ -295,7 +295,8 @@ public class Label extends Widget {
 \r
                public LabelStyle (LabelStyle style) {\r
                        this.font = style.font;\r
-                       if (style.fontColor != null) this.fontColor = new Color(style.fontColor);\r
+                       if (style.fontColor != null) fontColor = new Color(style.fontColor);\r
+                       background = style.background;\r
                }\r
        }\r
 }\r
index c775042..33864f9 100644 (file)
@@ -22,7 +22,7 @@ public class JsonValue {
        private long longValue;
 
        public String name;
-       /** May be null */
+       /** May be null. */
        public JsonValue child, next, prev;
        public int size;