From 4bc499768039ed3d618036400004d361c3d6934e Mon Sep 17 00:00:00 2001 From: wmayer Date: Wed, 9 Feb 2022 17:45:24 +0100 Subject: [PATCH] Sketcher: [skip ci] fix build failure with Qt 5.9 --- src/Mod/Sketcher/Gui/CommandSketcherBSpline.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Mod/Sketcher/Gui/CommandSketcherBSpline.cpp b/src/Mod/Sketcher/Gui/CommandSketcherBSpline.cpp index a4fb1168b0..8ed059a5b6 100644 --- a/src/Mod/Sketcher/Gui/CommandSketcherBSpline.cpp +++ b/src/Mod/Sketcher/Gui/CommandSketcherBSpline.cpp @@ -1056,8 +1056,10 @@ void CmdSketcherInsertKnot::activated(int iMsg) .arg(QString::fromUtf8(multList.str().c_str()))); // use an appropriate middle value from `knots` knotDialog.setDoubleValue(0.5 * (knots.front() + knots.back())); +#if QT_VERSION >= QT_VERSION_CHECK(5,10,0) // set step size dependent on the knot range knotDialog.setDoubleStep(0.001 * (knots.back() - knots.front())); +#endif // use min/max from `knots` knotDialog.setDoubleRange(knots.front(), knots.back());