From 219d8193c460a750279d37488fbe6e26e7bab41c Mon Sep 17 00:00:00 2001 From: Felix J Date: Mon, 25 May 2015 12:48:56 +0700 Subject: [PATCH] remove else clause Removing the else clause cause BMFont cannot set its font size --- cocos/ui/UIButton.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/cocos/ui/UIButton.cpp b/cocos/ui/UIButton.cpp index a0798c4566..e91c97156e 100644 --- a/cocos/ui/UIButton.cpp +++ b/cocos/ui/UIButton.cpp @@ -795,11 +795,6 @@ void Button::setTitleFontSize(float size) config.fontSize = size; _titleRenderer->setTTFConfig(config); } - else - { - // BMFont can't set its font size - size = _fontSize; - } updateContentSize(); _fontSize = size; }