--- a\src\iup_expander.c	Mon Sep 04 15:31:16 2017
+++ b\src\iup_expander.c	Tue Jan 16 23:46:10 2018
@@ -385,7 +385,12 @@
   int num_frames = iupAttribGetInt(ih, "NUMFRAMES");
   int time_delay = iupAttribGetInt(ih_timer, "ELAPSEDTIME");
   int height;
-  int current_frame = time_delay / frame_time;
+  int current_frame = 0;
+
+  if (frame_time != 0)
+  {
+     current_frame = time_delay / frame_time;
+  } 
 
   if (closing)
     height = (final_height*(num_frames - current_frame)) / num_frames;
