Skip to content

Commit

Permalink
Merge pull request #13422 from acolombier/fix/slip-render-marker
Browse files Browse the repository at this point in the history
fix: invalid slip render marker
  • Loading branch information
Swiftb0y committed Jun 30, 2024
2 parents d3f420f + 07113fd commit 6d23434
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/waveform/renderers/allshader/waveformrendermark.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ void allshader::WaveformRenderMark::paintGL() {

QMatrix4x4 matrix = matrixForWidgetGeometry(m_waveformRenderer, false);

const double playPosition = m_waveformRenderer->getTruePosSample();
const double playPosition = m_waveformRenderer->getTruePosSample(positionType);
double nextMarkPosition = std::numeric_limits<double>::max();

for (const auto& pMark : std::as_const(m_marks)) {
Expand All @@ -230,7 +230,7 @@ void allshader::WaveformRenderMark::paintGL() {
static_cast<float>(
m_waveformRenderer
->transformSamplePositionInRendererWorld(
samplePosition)) *
samplePosition, positionType)) *
devicePixelRatio) /
devicePixelRatio;
if (pMark->isShowUntilNext() &&
Expand Down

0 comments on commit 6d23434

Please sign in to comment.