aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog6
-rw-r--r--embed/mozilla/MozDownload.cpp4
2 files changed, 8 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 8a5e6eace..5c806a0d0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
2004-02-29 Marco Pesenti Gritti <marco@gnome.org>
+ * embed/mozilla/MozDownload.cpp:
+
+ Fix max size logic, thanks to chpe.
+
+2004-02-29 Marco Pesenti Gritti <marco@gnome.org>
+
* src/ephy-session.c: (impl_attach_window),
(ephy_session_add_window):
diff --git a/embed/mozilla/MozDownload.cpp b/embed/mozilla/MozDownload.cpp
index b3cc63ec8..c59d72b33 100644
--- a/embed/mozilla/MozDownload.cpp
+++ b/embed/mozilla/MozDownload.cpp
@@ -349,8 +349,8 @@ MozDownload::OnProgressChange(nsIWebProgress *aWebProgress, nsIRequest *aRequest
PRInt32 aCurTotalProgress, PRInt32 aMaxTotalProgress)
{
if (mMaxSize >= 0 &&
- ((aMaxTotalProgress > 0 && mMaxSize > aMaxTotalProgress) ||
- mMaxSize > aCurTotalProgress))
+ ((aMaxTotalProgress > 0 && mMaxSize < aMaxTotalProgress) ||
+ mMaxSize < aCurTotalProgress))
{
Cancel ();
}