Don't need to prepare increments because they do not support multi size

measurements anymore.
(grafted from ca88ea9874acb7e08edafe84ca716e58b6e4b05e)

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2017-08-04 13:05:48 +03:00
parent 474c0949e2
commit 825b0b1431

View File

@ -617,8 +617,7 @@ const QHash<QString, qreal *> VContainer::PlainVariables() const
while (i != d->variables.constEnd()) while (i != d->variables.constEnd())
{ {
QSharedPointer<VInternalVariable> var = i.value(); QSharedPointer<VInternalVariable> var = i.value();
if ((qApp->patternType() == MeasurementsType::Multisize) && if (qApp->patternType() == MeasurementsType::Multisize && var->GetType() == VarType::Measurement)
(var->GetType() == VarType::Measurement || var->GetType() == VarType::Increment))
{ {
QSharedPointer<VVariable> m = GetVariable<VVariable>(i.key()); QSharedPointer<VVariable> m = GetVariable<VVariable>(i.key());
m->SetValue(size(), height(), qApp->patternUnit()); m->SetValue(size(), height(), qApp->patternUnit());