# HG changeset patch # User Chris Cannam # Date 1537445655 -3600 # Node ID b39cd8fb309fff264852a74729e9e2823aab690e # Parent 646e713a46322a11d42e7226c547b1ecdaa5d8ae Avoid compiler warning diff -r 646e713a4632 -r b39cd8fb309f view/Overview.cpp --- a/view/Overview.cpp Thu Sep 20 11:45:26 2018 +0100 +++ b/view/Overview.cpp Thu Sep 20 13:14:15 2018 +0100 @@ -329,9 +329,11 @@ if (newCentreFrame > 0) --newCentreFrame; } + sv_frame_t pixel = sv_frame_t(round(m_zoomLevel.pixelsToFrames(1))); + if (std::max(m_centreFrame, newCentreFrame) - std::min(m_centreFrame, newCentreFrame) > - m_zoomLevel.pixelsToFrames(1)) { + pixel) { sv_frame_t rf = alignToReference(newCentreFrame); #ifdef DEBUG_OVERVIEW cerr << "Overview::mouseMoveEvent: x " << e->x() << " and click x " << m_clickPos.x() << " -> frame " << newCentreFrame << " -> rf " << rf << endl;