cc_item_picture: reset dimension if used blank image

avoids unnecessary applying of old dimensions
This commit is contained in:
2021-11-19 23:48:20 +01:00
parent 89b385eeee
commit dba4e290e8

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)