mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 08:21:12 +02:00
cc_item_picture: reset dimension if used blank image
avoids unnecessary applying of old dimensions
This commit is contained in:
@@ -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
|
//if logo or alternate image not available, set has_logo to false
|
||||||
has_logo = !image.empty();
|
has_logo = !image.empty();
|
||||||
if (!has_logo)
|
if (!has_logo)
|
||||||
|
{
|
||||||
image = "blank";
|
image = "blank";
|
||||||
|
setPicture(image, 0, 0);
|
||||||
//refresh object
|
}
|
||||||
setPicture(image, w, h);
|
else
|
||||||
|
{
|
||||||
|
setPicture(image, w, h);
|
||||||
|
}
|
||||||
|
|
||||||
//for sure, if no dimensions were detected set value of has_logo = false
|
//for sure, if no dimensions were detected set value of has_logo = false
|
||||||
if (width && height && has_logo)
|
if (width && height && has_logo)
|
||||||
|
Reference in New Issue
Block a user