Fix disabling rows for the restriction of the second dimension.

This commit is contained in:
Roman Telezhynskyi 2021-01-28 17:38:30 +02:00
parent 63aba8728b
commit 228c40f975

View File

@ -637,7 +637,7 @@ void DialogRestrictDimension::AddCell(int row, int column, qreal rowValue, qreal
if (m_dimensions.size() >= 2) if (m_dimensions.size() >= 2)
{ {
validRows = m_dimensions.at(0)->ValidBases(); validRows = DimensionRestrictedValues(m_dimensions.at(0));
dimension = m_dimensions.at(1); dimension = m_dimensions.at(1);
bases = dimension->ValidBases(); bases = dimension->ValidBases();
} }
@ -855,7 +855,7 @@ auto DialogRestrictDimension::DimensionRestrictedValues(const MeasurementDimensi
{ {
VDimensionRestriction restriction; VDimensionRestriction restriction;
if (m_restrictionType == RestrictDimension::First) if (m_restrictionType == RestrictDimension::First || m_restrictionType == RestrictDimension::Second)
{ {
restriction = m_restrictions.value(QChar('0')); restriction = m_restrictions.value(QChar('0'));
} }