aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@gnome.org>2004-02-29 19:33:30 +0800
committerMarco Pesenti Gritti <marco@src.gnome.org>2004-02-29 19:33:30 +0800
commit9f0b13d2450440eb4fdb8944f749448471d98c17 (patch)
tree2e3eebae3784fac97f25446a9dabf13801e74c00
parent1419787b3ca3874501d0530d81c8c714a2e26547 (diff)
downloadgsoc2013-epiphany-9f0b13d2450440eb4fdb8944f749448471d98c17.tar
gsoc2013-epiphany-9f0b13d2450440eb4fdb8944f749448471d98c17.tar.gz
gsoc2013-epiphany-9f0b13d2450440eb4fdb8944f749448471d98c17.tar.bz2
gsoc2013-epiphany-9f0b13d2450440eb4fdb8944f749448471d98c17.tar.lz
gsoc2013-epiphany-9f0b13d2450440eb4fdb8944f749448471d98c17.tar.xz
gsoc2013-epiphany-9f0b13d2450440eb4fdb8944f749448471d98c17.tar.zst
gsoc2013-epiphany-9f0b13d2450440eb4fdb8944f749448471d98c17.zip
Fix max size logic, thanks to chpe.
2004-02-29 Marco Pesenti Gritti <marco@gnome.org> * embed/mozilla/MozDownload.cpp: Fix max size logic, thanks to chpe.
-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 ();
}