[med-svn] [SCM] aghermann branch, master, updated. 17c5ded0cb1e251d8640a94750eb700b2e062b2a

Andrei Zavada johnhommer at gmail.com
Sun Feb 24 13:40:17 UTC 2013


The following commit has been merged in the master branch:
commit 698befdfdc0ba05ad731c0eb1559395bbddd64db
Author: Andrei Zavada <johnhommer at gmail.com>
Date:   Sat Feb 9 17:02:31 2013 +0200

    correctly calculate days on measuremets view

diff --git a/src/ui/mw/measurements.cc b/src/ui/mw/measurements.cc
index 10d5779..4c655b8 100644
--- a/src/ui/mw/measurements.cc
+++ b/src/ui/mw/measurements.cc
@@ -251,7 +251,7 @@ draw_timeline( cairo_t *cr) const
 					cairo_move_to( cr, tl_left_margin() + x, ( clock_h % 24 == 0 ) ? 0 : (timeline_height() - 16));
 					cairo_line_to( cr, tl_left_margin() + x, timeline_height() - 10);
 
-					snprintf_buf_ts_h( (clock_d - clock_d0) * 24 + clock_h);
+					snprintf_buf_ts_h( (clock_d - clock_d0 + 1) * 24 + clock_h);
 					cairo_text_extents_t extents;
 					cairo_text_extents( cr, __buf__, &extents);
 					cairo_move_to( cr, tl_left_margin() + x - extents.width/2, timeline_height()-1);

-- 
Sleep experiment manager



More information about the debian-med-commit mailing list