cc_item_picture: reset dimension if used blank image

avoids unnecessary applying of old dimensions


Origin commit data
------------------
Commit: 3061d83380
Author: Thilo Graf <dbt@novatux.de>
Date: 2021-11-20 (Sat, 20 Nov 2021)
This commit is contained in:
2021-11-20 18:42:49 +01:00
committed by vanhofen
parent 4d4e625186
commit b58e51118e

View File

@@ -159,10 +159,14 @@ void CComponentsChannelLogo::setChannel(const uint64_t &channelId, const std::st
//if logo or alternate image not available, set has_logo to false
has_logo = !image.empty();
if (!has_logo)
{
image = "blank";
//refresh object
setPicture(image, w, h);
setPicture(image, 0, 0);
}
else
{
setPicture(image, w, h);
}
//for sure, if no dimensions were detected set value of has_logo = false
if (width && height && has_logo)