diff options
author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2012-06-12 14:57:38 +0200 |
---|---|---|
committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2012-06-12 17:29:46 +0200 |
commit | 3084c95cf968dcb4d901b77ee73672e25fa07484 (patch) | |
tree | 75a01bdef3d6e04fba7192a94e6b737a721f236c /lib/experiment-reader | |
parent | aff67bc8f9dc934fc8a048ac345ea4f7c21ba350 (diff) | |
download | gtk-vlc-player-3084c95cf968dcb4d901b77ee73672e25fa07484.tar.gz |
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
Diffstat (limited to 'lib/experiment-reader')
-rw-r--r-- | lib/experiment-reader/experiment-reader.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; } |