Browse Source

deploy-ng: fix an exception when all icon images could not be read

rdb 6 years ago
parent
commit
28d9a33db4
1 changed files with 1 additions and 0 deletions
  1. 1 0
      direct/src/p3d/DeploymentTools.py

+ 1 - 0
direct/src/p3d/DeploymentTools.py

@@ -344,6 +344,7 @@ class Icon:
             if required_size * 2 in sizes:
                 from_size = required_size * 2
             else:
+                from_size = 0
                 for from_size in sizes:
                     if from_size > required_size:
                         break