From 23e6d524b1ba33e5dcade5592e19ebbcfd3b49b3 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Wed, 9 Feb 2022 10:32:57 +0200 Subject: [PATCH] Fix build with MSVC. --- src/libs/vgeometry/vabstractcubicbezier.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libs/vgeometry/vabstractcubicbezier.cpp b/src/libs/vgeometry/vabstractcubicbezier.cpp index 4bda1d047..bfd8f1802 100644 --- a/src/libs/vgeometry/vabstractcubicbezier.cpp +++ b/src/libs/vgeometry/vabstractcubicbezier.cpp @@ -516,7 +516,7 @@ auto VAbstractCubicBezier::GetParmT(qreal length) const -> qreal length = base; } - constexpr qreal eps = UnitConvertor(0.001, Unit::Mm, Unit::Px); + Q_DECL_RELAXED_CONSTEXPR qreal eps = ToPixel(0.001, Unit::Mm); qreal parT = 0.5; qreal step = parT; qreal splLength = 0;