Fixed issue #913. Unable to save changes for piece path if it doesn't contain a
point. --HG-- branch : release
This commit is contained in:
parent
c60bcc30ac
commit
b36e4e2cf8
|
@ -3,6 +3,7 @@
|
|||
- [#905] Valentina crashes with error: This id is not unique.
|
||||
- [#909] Valentina produces wrong united path.
|
||||
- [#912] Labels in inactive state return to initial color.
|
||||
- [#913] Unable to save changes for piece path if it doesn't contain a point.
|
||||
|
||||
# Version 0.6.1 October 23, 2018
|
||||
- [#885] Regression. Broken support for multi size measurements.
|
||||
|
|
|
@ -748,6 +748,8 @@ void DialogPiecePath::EvalWidth()
|
|||
void DialogPiecePath::EvalWidthBefore()
|
||||
{
|
||||
labelEditFormula = ui->labelEditBefore;
|
||||
if (ui->comboBoxNodes->count() > 0)
|
||||
{
|
||||
const QString postfix = UnitsToStr(qApp->patternUnit(), true);
|
||||
QString formula = ui->plainTextEditFormulaWidthBefore->toPlainText();
|
||||
Eval(formula, m_flagFormulaBefore, ui->labelResultBefore, postfix, false, true);
|
||||
|
@ -759,12 +761,21 @@ void DialogPiecePath::EvalWidthBefore()
|
|||
}
|
||||
|
||||
UpdateNodeSABefore(formula);
|
||||
}
|
||||
else
|
||||
{
|
||||
ChangeColor(labelEditFormula, okColor);
|
||||
ui->labelResultBefore->setText(tr("<Empty>"));
|
||||
m_flagFormulaBefore = true;
|
||||
}
|
||||
}
|
||||
|
||||
//---------------------------------------------------------------------------------------------------------------------
|
||||
void DialogPiecePath::EvalWidthAfter()
|
||||
{
|
||||
labelEditFormula = ui->labelEditAfter;
|
||||
if (ui->comboBoxNodes->count() > 0)
|
||||
{
|
||||
const QString postfix = UnitsToStr(qApp->patternUnit(), true);
|
||||
QString formula = ui->plainTextEditFormulaWidthAfter->toPlainText();
|
||||
Eval(formula, m_flagFormulaAfter, ui->labelResultAfter, postfix, false, true);
|
||||
|
@ -776,6 +787,13 @@ void DialogPiecePath::EvalWidthAfter()
|
|||
}
|
||||
|
||||
UpdateNodeSAAfter(formula);
|
||||
}
|
||||
else
|
||||
{
|
||||
ChangeColor(labelEditFormula, okColor);
|
||||
ui->labelResultAfter->setText(tr("<Empty>"));
|
||||
m_flagFormulaAfter = true;
|
||||
}
|
||||
}
|
||||
|
||||
//---------------------------------------------------------------------------------------------------------------------
|
||||
|
|
|
@ -2079,6 +2079,8 @@ void DialogSeamAllowance::EvalWidthBefore()
|
|||
if (uiTabPaths->checkBoxSeams->isChecked())
|
||||
{
|
||||
labelEditFormula = uiTabPaths->labelEditBefore;
|
||||
if (uiTabPaths->comboBoxNodes->count() > 0)
|
||||
{
|
||||
const QString postfix = UnitsToStr(qApp->patternUnit(), true);
|
||||
const QString formula = uiTabPaths->plainTextEditFormulaWidthBefore->toPlainText();
|
||||
Eval(formula, flagFormulaBefore, uiTabPaths->labelResultBefore, postfix, false, true);
|
||||
|
@ -2087,6 +2089,13 @@ void DialogSeamAllowance::EvalWidthBefore()
|
|||
UpdateNodeSABefore(formulaSABefore);
|
||||
EnableDefButton(uiTabPaths->pushButtonDefBefore, formulaSABefore);
|
||||
}
|
||||
else
|
||||
{
|
||||
ChangeColor(labelEditFormula, okColor);
|
||||
uiTabPaths->labelResultBefore->setText(tr("<Empty>"));
|
||||
flagFormulaBefore = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//---------------------------------------------------------------------------------------------------------------------
|
||||
|
@ -2095,6 +2104,8 @@ void DialogSeamAllowance::EvalWidthAfter()
|
|||
if (uiTabPaths->checkBoxSeams->isChecked())
|
||||
{
|
||||
labelEditFormula = uiTabPaths->labelEditAfter;
|
||||
if (uiTabPaths->comboBoxNodes->count() > 0)
|
||||
{
|
||||
const QString postfix = UnitsToStr(qApp->patternUnit(), true);
|
||||
const QString formula = uiTabPaths->plainTextEditFormulaWidthAfter->toPlainText();
|
||||
Eval(formula, flagFormulaAfter, uiTabPaths->labelResultAfter, postfix, false, true);
|
||||
|
@ -2103,6 +2114,13 @@ void DialogSeamAllowance::EvalWidthAfter()
|
|||
UpdateNodeSAAfter(formulaSAAfter);
|
||||
EnableDefButton(uiTabPaths->pushButtonDefAfter, formulaSAAfter);
|
||||
}
|
||||
else
|
||||
{
|
||||
ChangeColor(labelEditFormula, okColor);
|
||||
uiTabPaths->labelResultAfter->setText(tr("<Empty>"));
|
||||
flagFormulaAfter = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//---------------------------------------------------------------------------------------------------------------------
|
||||
|
|
Loading…
Reference in New Issue
Block a user