linux spinner: Attempt to fix exception

This commit is contained in:
Hylke Bons 2012-09-24 23:17:35 +02:00
parent bf5f999718
commit d07e8bc991

View file

@ -33,7 +33,7 @@ namespace SparkleShare {
int frames_in_width = spinner_gallery.Width / size;
int frames_in_height = spinner_gallery.Height / size;
int frame_count = (frames_in_width * frames_in_height) - 1;
Gdk.Pixbuf [] frames = new Gdk.Pixbuf [frame_count - 1];
Gdk.Pixbuf [] frames = new Gdk.Pixbuf [frame_count];
int i = 0;
for (int y = 0; y < frames_in_height; y++) {