The following commit has been merged in the master branch:
commit 505432cf6ab4f88fa0a0d245da279903586957f3
Author: Andrei Zavada <[email protected]>
Date: Mon Apr 1 23:54:16 2013 +0300
SF: prevent bogus signal values at cursor when out of range
diff --git a/src/ui/sf/montage-overlays.cc b/src/ui/sf/montage-overlays.cc
index 92425fd..86d858c 100644
--- a/src/ui/sf/montage-overlays.cc
+++ b/src/ui/sf/montage-overlays.cc
@@ -318,7 +318,9 @@ draw_overlays( cairo_t* cr,
_p._draw_hour_ticks( cr, zeroy, pbot);
// crosshair (is drawn once in SScoringFacility::draw_montage), voltage
at
- if ( _p.draw_crosshair ) {
+ if ( _p.draw_crosshair and
+ _p.crosshair_at_time >= 0. and
+ _p.crosshair_at_time * samplerate() < n_samples() ) {
cairo_set_font_size( cr, 10);
cairo_select_font_face( cr, "sans", CAIRO_FONT_SLANT_NORMAL,
CAIRO_FONT_WEIGHT_BOLD);
_p._p.CwB[SExpDesignUI::TColour::sf_cursor].set_source_rgb( cr);
--
Sleep experiment manager
_______________________________________________
debian-med-commit mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/debian-med-commit