From 0edc94d00a3a439e07073b73ef5c183250c516fc Mon Sep 17 00:00:00 2001 From: Sean Rhea Date: Sat, 2 Jan 2010 17:05:18 -0500 Subject: [PATCH] bug fix: integer division error I introduced this bug in commit 23b2ff4. --- src/ManualRideDialog.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ManualRideDialog.cpp b/src/ManualRideDialog.cpp index d7009c3ec..6685a368d 100644 --- a/src/ManualRideDialog.cpp +++ b/src/ManualRideDialog.cpp @@ -208,8 +208,8 @@ ManualRideDialog::estBSFromTime() // calculate time-based BS estimate if (timeBS) { double hrs = hrsentry->text().toInt() - + minsentry->text().toInt() / 60 - + secsentry->text().toInt() / 3600; + + minsentry->text().toInt() / 60.0 + + secsentry->text().toInt() / 3600.0; BSentry->clear(); BSentry->insert(QString("%1").arg((int)(hrs * timeBS))); DPentry->clear();