Fix crash when export to DXF AAMA/ASTM.

This commit is contained in:
Roman Telezhynskyi 2024-01-12 17:10:22 +02:00
parent 52430657c3
commit 01ce780548

View file

@ -1276,6 +1276,10 @@ void VDxfEngine::ExportAAMADrawFoldLine(const QSharedPointer<dx_ifaceBlock> &det
{
VFoldLine const fLine = detail.FoldLine();
QVector<QVector<QPointF>> points = fLine.FoldLineMarkPoints();
if (points.isEmpty())
{
return;
}
switch (detail.GetFoldLineType())
{
@ -1728,6 +1732,10 @@ void VDxfEngine::ExportASTMDrawFoldLine(const QSharedPointer<dx_ifaceBlock> &det
{
VFoldLine const fLine = detail.FoldLine();
QVector<QVector<QPointF>> points = fLine.FoldLineMarkPoints();
if (points.isEmpty())
{
return;
}
switch (detail.GetFoldLineType())
{