From 9f0b13d2450440eb4fdb8944f749448471d98c17 Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Sun, 29 Feb 2004 11:33:30 +0000 Subject: Fix max size logic, thanks to chpe. 2004-02-29 Marco Pesenti Gritti * embed/mozilla/MozDownload.cpp: Fix max size logic, thanks to chpe. --- ChangeLog | 6 ++++++ embed/mozilla/MozDownload.cpp | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 8a5e6eace..5c806a0d0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2004-02-29 Marco Pesenti Gritti + + * embed/mozilla/MozDownload.cpp: + + Fix max size logic, thanks to chpe. + 2004-02-29 Marco Pesenti Gritti * src/ephy-session.c: (impl_attach_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 (); } -- cgit