diff --git a/sources/materiallist/materialselectiondialog.cpp b/sources/materiallist/materialselectiondialog.cpp index d7265de7e..ba1aabfb5 100644 --- a/sources/materiallist/materialselectiondialog.cpp +++ b/sources/materiallist/materialselectiondialog.cpp @@ -373,7 +373,7 @@ bool MaterialSelectionDialog::eventFilter(QObject *watched, QEvent *event) static int wheelAmount(int delta, bool counting_items) { if (counting_items) { - return 3 * qRound(double(delta) / QWheelEvent::DefaultDeltasPerStep); + return 3 * qRound(static_cast(delta) / static_cast(QWheelEvent::DefaultDeltasPerStep)); } return delta; }