diff options
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | embed/mozilla/MozDownload.cpp | 4 |
2 files changed, 8 insertions, 2 deletions
@@ -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 (); } |