From 3084c95cf968dcb4d901b77ee73672e25fa07484 Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Tue, 12 Jun 2012 14:57:38 +0200 Subject: don't render into invisible area of the text layer it is unknown how large that area has to be in order for every contribution to fit in --- lib/experiment-reader/experiment-reader.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/experiment-reader') diff --git a/lib/experiment-reader/experiment-reader.c b/lib/experiment-reader/experiment-reader.c index 0ba25b2..b5aa398 100644 --- a/lib/experiment-reader/experiment-reader.c +++ b/lib/experiment-reader/experiment-reader.c @@ -354,7 +354,7 @@ experiment_reader_get_contributions_by_speaker(ExperimentReader *reader, * @brief Get a contribution by time * * Gets the closest contribution after the specified time or the last one - * if there is no contribution after or at the specified time. + * if there is no contribution after the specified time. * The contribution is returned as a pointer into the contribution list * so that the list may be traversed by the caller. * @@ -371,7 +371,7 @@ experiment_reader_get_contribution_by_time(GList *contribs, gint64 timept) ExperimentReaderContrib *contrib = (ExperimentReaderContrib *)cur->data; - if (contrib->start_time >= timept || + if (contrib->start_time > timept || cur->next == NULL) return cur; } -- cgit v1.2.3