From dafc8122d45beea5c5c272acec059438321f18a6 Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Mon, 7 Dec 2020 23:28:52 +0100 Subject: [PATCH] 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 ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/72948c74b848f2d232b89aa36ffe9aad40fb593b Author: Thilo Graf Date: 2020-12-07 (Mon, 07 Dec 2020) ------------------ This commit was generated by Migit --- src/gui/components/cc_frm_button.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/gui/components/cc_frm_button.cpp b/src/gui/components/cc_frm_button.cpp index 28ed6747d..f464b4800 100644 --- a/src/gui/components/cc_frm_button.cpp +++ b/src/gui/components/cc_frm_button.cpp @@ -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;