cc_frm_button.cpp: remove not required statement call

Avoids oversized button with too long text.
Error was observed in some lua plugin windows with large font scale settings
and with osd resolution of 1280x720.


Origin commit data
------------------
Commit: 72948c74b8
Author: Thilo Graf <dbt@novatux.de>
Date: 2020-12-07 (Mon, 07 Dec 2020)
This commit is contained in:
2020-12-07 23:28:52 +01:00
committed by vanhofen
parent b3694248e0
commit 4612b88581

View File

@@ -216,8 +216,6 @@ void CComponentsButton::initCaption()
Font *tmp_font = cc_btn_font;
if ((tmp_font->getHeight()-reduce) > (height-reduce) || (tmp_font->getRenderWidth(cc_btn_text)-reduce) > width-reduce)
tmp_font = *cc_btn_dy_font->getDynFont(w_cap, h_cap, cc_btn_text);
if ((cc_btn_font->getHeight()-reduce) > (height-reduce))
tmp_font = *cc_btn_dy_font->getDynFont(w_cap, h_cap, cc_btn_text);
cc_btn_font = tmp_font;