Try another way to fix build.
--HG-- branch : develop
This commit is contained in:
parent
f63e3ff1ad
commit
74218e82bc
|
@ -296,7 +296,7 @@ QVector<QPointF> VEllipticalArc::GetPoints() const
|
||||||
{
|
{
|
||||||
polygon = ConstFirst (path.toSubpathPolygons());
|
polygon = ConstFirst (path.toSubpathPolygons());
|
||||||
|
|
||||||
if (not polygon.isEmpty() && not VFuzzyComparePoints(GetP1(), ConstFirst (polygon)))
|
if (not polygon.isEmpty() && not VFuzzyComparePoints(GetP1(), ConstFirst<QPointF> (polygon)))
|
||||||
{
|
{
|
||||||
polygon.removeFirst(); // remove point (0;0)
|
polygon.removeFirst(); // remove point (0;0)
|
||||||
}
|
}
|
||||||
|
|
|
@ -371,7 +371,7 @@ inline const T& ConstFirst (const Cont<T> &container)
|
||||||
}
|
}
|
||||||
|
|
||||||
template <typename T, typename C>
|
template <typename T, typename C>
|
||||||
inline const auto& ConstFirst (const C &container)
|
inline const T& ConstFirst (const C &container)
|
||||||
{
|
{
|
||||||
#if QT_VERSION >= QT_VERSION_CHECK(5, 6, 0)
|
#if QT_VERSION >= QT_VERSION_CHECK(5, 6, 0)
|
||||||
return container.constFirst();
|
return container.constFirst();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user