2006-05-16 [wwp] 2.2.0cvs19
[claws.git] / src / send_message.c
index 927e263f9bb9bebe99aa00ea22984fd3f7153268..f29d9a35f6309d8eabe944f5a5ade0663e741fea 100644 (file)
@@ -493,7 +493,7 @@ static gint send_send_data_progressive(Session *session, guint cur_len,
                   cur_len, total_len);
        progress_dialog_set_label(dialog->dialog, buf);
        progress_dialog_set_fraction
-               (dialog->dialog, (gfloat)cur_len / (gfloat)total_len);
+               (dialog->dialog, (total_len == 0) ? 0 : (gfloat)cur_len / (gfloat)total_len);
 
        return 0;
 }