From 6f50d36b00efc38b2ada0cfdf613dd8ace355049 Mon Sep 17 00:00:00 2001 From: reuk Date: Mon, 3 Aug 2020 15:06:20 +0100 Subject: [PATCH] Projucer: Fix bug where the small icon was used to generate xcassets --- extras/Build/juce_build_tools/utils/juce_Icons.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/extras/Build/juce_build_tools/utils/juce_Icons.cpp b/extras/Build/juce_build_tools/utils/juce_Icons.cpp index 745492ffe6..d043dc3d55 100644 --- a/extras/Build/juce_build_tools/utils/juce_Icons.cpp +++ b/extras/Build/juce_build_tools/utils/juce_Icons.cpp @@ -363,13 +363,14 @@ namespace build_tools static void createiOSIconFiles (const Icons& icons, File appIconSet) { - const auto images = asArray (icons); + auto* imageToUse = icons.big != nullptr ? icons.big.get() + : icons.small.get(); - if (! images.isEmpty()) + if (imageToUse != nullptr) { for (auto& type : iOSAppIconTypes) { - auto image = rescaleImageForIcon (*images.getFirst(), type.size); + auto image = rescaleImageForIcon (*imageToUse, type.size); if (image.hasAlphaChannel()) {