diff --git a/es-core/src/components/primary/CarouselComponent.h b/es-core/src/components/primary/CarouselComponent.h index 488ab16e4..76b80b094 100644 --- a/es-core/src/components/primary/CarouselComponent.h +++ b/es-core/src/components/primary/CarouselComponent.h @@ -915,9 +915,10 @@ void CarouselComponent::applyTheme(const std::shared_ptr& theme, } if (elem->has("maxLogoCount")) { + // For legacy themes we allow a maxLogoCount (maxItemCount) of 0. if (theme->isLegacyTheme()) mMaxItemCount = - std::ceil(glm::clamp(elem->get("maxLogoCount"), 0.5f, 30.0f)); + std::ceil(glm::clamp(elem->get("maxLogoCount"), 0.0f, 30.0f)); else mMaxItemCount = glm::clamp(elem->get("maxLogoCount"), 0.5f, 30.0f); }