Skip to content

Commit

Permalink
Merge pull request #66 from mhatta/patch-1
Browse files Browse the repository at this point in the history
static_cast<int> is missing
  • Loading branch information
Dax89 authored Feb 23, 2024
2 parents 5f1f9ec + 29e888d commit 6e8bbae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion widgets/graphview/graphview.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ void GraphView::mouseMoveEvent(QMouseEvent *e)
{

#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
QPoint delta{m_scrollbase.x() - e->position().x(), m_scrollbase.y() - e->position().y()};
QPoint delta{static_cast<int>(m_scrollbase.x() - e->position().x()), static_cast<int>(m_scrollbase.y() - e->position().y())};
#else
QPoint delta{m_scrollbase.x() - e->pos().x(), m_scrollbase.y() - e->pos().y()};
#endif
Expand Down

0 comments on commit 6e8bbae

Please sign in to comment.