From 463d13d6d823bdf68d215448f3bd4a17a466074e Mon Sep 17 00:00:00 2001 From: NathanSweet Date: Sun, 7 Aug 2016 03:12:01 +0200 Subject: [PATCH] Fixed CheckBoxStyle copy constructor. closes #4209 --- gdx/src/com/badlogic/gdx/scenes/scene2d/ui/CheckBox.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gdx/src/com/badlogic/gdx/scenes/scene2d/ui/CheckBox.java b/gdx/src/com/badlogic/gdx/scenes/scene2d/ui/CheckBox.java index c7079bdbe74..c819b1c0788 100644 --- a/gdx/src/com/badlogic/gdx/scenes/scene2d/ui/CheckBox.java +++ b/gdx/src/com/badlogic/gdx/scenes/scene2d/ui/CheckBox.java @@ -106,13 +106,12 @@ public CheckBoxStyle (Drawable checkboxOff, Drawable checkboxOn, BitmapFont font } public CheckBoxStyle (CheckBoxStyle style) { + super(style); this.checkboxOff = style.checkboxOff; this.checkboxOn = style.checkboxOn; this.checkboxOver = style.checkboxOver; this.checkboxOffDisabled = style.checkboxOffDisabled; this.checkboxOnDisabled = style.checkboxOnDisabled; - this.font = style.font; - this.fontColor = new Color(style.fontColor); } } }