summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--perl-install/install_steps_gtk.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/install_steps_gtk.pm b/perl-install/install_steps_gtk.pm
index efdddcbd6..61368b9a9 100644
--- a/perl-install/install_steps_gtk.pm
+++ b/perl-install/install_steps_gtk.pm
@@ -522,7 +522,7 @@ sub installPackages {
$i++;
my $old_i_image = $i_image;
- $i_image = int($i / $nb * $nb_images);
+ $i_image = int($i / $nb * $nb_images) % $nb_images;
if ($old_i_image ne $i_image) {
my $f = "$dir/ad-$i_image.png";
log::l("advertising $f");