if (!ev_window->priv->message_area)
return;
+ if (total_bytes <= 0)
+ return;
+
fraction = n_bytes / (gdouble)total_bytes;
status = g_strdup_printf (_("Downloading document (%d%%)"),
(gint)(fraction * 100));
if (!ev_window->priv->message_area)
return;
-
+
+ if (total_bytes <= 0)
+ return;
+
fraction = n_bytes / (gdouble)total_bytes;
status = g_strdup_printf (_("Downloading document (%d%%)"),
(gint)(fraction * 100));
if (!ev_window->priv->message_area)
return;
-
+
+ if (total_bytes <= 0)
+ return;
+
fraction = n_bytes / (gdouble)total_bytes;
save_type = GPOINTER_TO_INT (g_object_get_data (G_OBJECT (dst), "save-type"));