Sketcher: [skip ci] fix build failure with Qt 5.9

This commit is contained in:
wmayer
2022-02-09 17:45:24 +01:00
parent 705d6f139e
commit 4bc4997680

View File

@@ -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());