reapack

Package manager for REAPER
Log | Files | Refs | Submodules | README | LICENSE

commit 3261187024a20d52cb8ee56cf7590e989be7c755
parent d0b508b7d8c47c9039e06406631d386b715764a6
Author: cfillion <cfillion@users.noreply.github.com>
Date:   Tue, 12 Jul 2016 00:38:02 -0400

progress: prevent briefly going over 100% before closing the dialog

Diffstat:
Msrc/progress.cpp | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/progress.cpp b/src/progress.cpp @@ -86,7 +86,7 @@ void Progress::updateProgress() SetWindowText(m_label, label); - const double pos = (double)(m_done+1) / max(2, m_total); + const double pos = (double)(min(m_done+1, m_total)) / max(2, m_total); const int percent = (int)(pos * 100); auto_char title[255] = {};