Fixed reversed comparison in curveplot module.

sensor-dev
Chris Laurel 2010-01-25 02:48:14 +00:00
parent 42ba2575c0
commit 6b6bdc4316
1 changed files with 2 additions and 2 deletions

View File

@ -796,7 +796,7 @@ CurvePlot::render(const Transform3d& modelview,
// Linear search for the first sample
unsigned int startSample = 0;
while (startSample < m_samples.size() - 1 && startTime < m_samples[startSample].t)
while (startSample < m_samples.size() - 1 && startTime > m_samples[startSample].t)
startSample++;
// Start at the first sample with time <= startTime
@ -963,7 +963,7 @@ CurvePlot::renderFaded(const Eigen::Transform3d& modelview,
// Linear search for the first sample
unsigned int startSample = 0;
while (startSample < m_samples.size() - 1 && startTime < m_samples[startSample].t)
while (startSample < m_samples.size() - 1 && startTime > m_samples[startSample].t)
startSample++;
// Start at the first sample with time <= startTime