Fix build issues.
This commit is contained in:
parent
f5a7e85aae
commit
dd1dccea7d
|
@ -1225,6 +1225,8 @@ void VDxfEngine::ExportASTMNotch(const QSharedPointer<dx_ifaceBlock> &detailBloc
|
||||||
case PassmarkLineType::LAST_ONE_DO_NOT_USE:
|
case PassmarkLineType::LAST_ONE_DO_NOT_USE:
|
||||||
Q_UNREACHABLE();
|
Q_UNREACHABLE();
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
};
|
};
|
||||||
|
|
||||||
detailBlock->ent.push_back(notch);
|
detailBlock->ent.push_back(notch);
|
||||||
|
|
|
@ -39,6 +39,7 @@
|
||||||
#include "vpassmark.h"
|
#include "vpassmark.h"
|
||||||
|
|
||||||
#include <QJsonObject>
|
#include <QJsonObject>
|
||||||
|
#include <QtMath>
|
||||||
|
|
||||||
const qreal VPassmark::passmarkRadiusFactor = 0.45;
|
const qreal VPassmark::passmarkRadiusFactor = 0.45;
|
||||||
|
|
||||||
|
|
|
@ -29,6 +29,7 @@
|
||||||
#include "../vgeometry/vabstractcurve.h"
|
#include "../vgeometry/vabstractcurve.h"
|
||||||
#include "qmath.h"
|
#include "qmath.h"
|
||||||
#include "vpiecegrainline_p.h"
|
#include "vpiecegrainline_p.h"
|
||||||
|
#include <algorithm>
|
||||||
|
|
||||||
#include <QTransform>
|
#include <QTransform>
|
||||||
|
|
||||||
|
@ -427,10 +428,7 @@ auto VPieceGrainline::IsPositionValid(const QVector<QPointF> &contourPoints) con
|
||||||
auto VPieceGrainline::IsShapeValid() const -> bool
|
auto VPieceGrainline::IsShapeValid() const -> bool
|
||||||
{
|
{
|
||||||
GrainlineShape shape = Shape();
|
GrainlineShape shape = Shape();
|
||||||
return std::ranges::all_of(shape, [](const auto& subShape)
|
return std::all_of(shape.cbegin(), shape.cend(), [](const auto &subShape) { return not subShape.isEmpty(); });
|
||||||
{
|
|
||||||
return not subShape.isEmpty();
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Friend functions
|
// Friend functions
|
||||||
|
|
Loading…
Reference in New Issue
Block a user