Fix preparing placeholders for final measurements. #193

This commit is contained in:
Roman Telezhynskyi 2022-12-31 15:27:44 +02:00
parent 6e98acd13a
commit aeaf962a57
2 changed files with 4 additions and 2 deletions

View File

@ -275,7 +275,8 @@ auto PreparePlaceholders(const VAbstractPattern *doc, const VContainer *data) ->
{
const QVector<VFinalMeasurement> measurements = doc->GetFinalMeasurements();
const VContainer completeData = doc->GetCompleteData();
VContainer completeData = doc->GetCompleteData();
completeData.FillPiecesAreas(VAbstractValApplication::VApp()->patternUnits());
for (int i=0; i < measurements.size(); ++i)
{

View File

@ -622,7 +622,8 @@ void DialogEditLabel::InitPlaceholders()
{
const QVector<VFinalMeasurement> measurements = m_doc->GetFinalMeasurements();
const VContainer completeData = m_doc->GetCompleteData();
VContainer completeData = m_doc->GetCompleteData();
completeData.FillPiecesAreas(VAbstractValApplication::VApp()->patternUnits());
for (int i=0; i < measurements.size(); ++i)
{