[med-svn] [aghermann] 05/23: populate: correctly calculate tl_width

andrei zavada hmmr-guest at moszumanska.debian.org
Wed Jan 4 22:59:24 UTC 2017


This is an automated email from the git hooks/post-receive script.

hmmr-guest pushed a commit to tag 1.1.2
in repository aghermann.

commit b34066d991a8905b0359b74332b712f0f8ebc89c
Author: Andrei Zavada <hmmr at frdg>
Date:   Mon Jan 2 05:59:26 2017 +0200

    populate: correctly calculate tl_width
---
 upstream/src/aghermann/ui/mw/populate.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/upstream/src/aghermann/ui/mw/populate.cc b/upstream/src/aghermann/ui/mw/populate.cc
index 03dea12..713fb31 100644
--- a/upstream/src/aghermann/ui/mw/populate.cc
+++ b/upstream/src/aghermann/ui/mw/populate.cc
@@ -449,7 +449,7 @@ populate_1()
                 timeline_end - timeline_start;
         if ( full_secs < 3600 )
                 full_secs = 3600;
-        tl_width = full_secs * tl_pph;
+        tl_width = full_secs * tl_pph / 3600;
         tl_pages = full_secs / ED->psd_params.pagesize;
 
         APPLOG_INFO ("populate_1(): common timeline is %zu pages:", tl_pages);

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/aghermann.git



More information about the debian-med-commit mailing list