The following commit has been merged in the master branch:
commit 698befdfdc0ba05ad731c0eb1559395bbddd64db
Author: Andrei Zavada <[email protected]>
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
_______________________________________________
debian-med-commit mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/debian-med-commit