Fix regression in dialog Placelabel.
--HG-- branch : develop
This commit is contained in:
parent
60fabf0b71
commit
eeedebbac3
|
@ -505,8 +505,6 @@ void DialogPlaceLabel::FillPlaceLabelTypes()
|
|||
//---------------------------------------------------------------------------------------------------------------------
|
||||
void DialogPlaceLabel::CheckPieces()
|
||||
{
|
||||
if (not m_showMode)
|
||||
{
|
||||
QColor color;
|
||||
if (ui->comboBoxPiece->count() <= 0 || ui->comboBoxPiece->currentIndex() == -1)
|
||||
{
|
||||
|
@ -520,7 +518,6 @@ void DialogPlaceLabel::CheckPieces()
|
|||
}
|
||||
ChangeColor(ui->labelPiece, color);
|
||||
CheckState();
|
||||
}
|
||||
}
|
||||
|
||||
//---------------------------------------------------------------------------------------------------------------------
|
||||
|
|
|
@ -870,14 +870,14 @@ void DialogSeamAllowance::ShowPlaceLabelsContextMenu(const QPoint &pos)
|
|||
else if (selectedAction == actionOption)
|
||||
{
|
||||
auto *dialog = new DialogPlaceLabel(data, labelId, this);
|
||||
dialog->SetCenterPoint(labelId);
|
||||
dialog->EnbleShowMode(true);
|
||||
dialog->SetLabelType(currentLabel.GetLabelType());
|
||||
dialog->SetWidth(currentLabel.GetWidthFormula());
|
||||
dialog->SetHeight(currentLabel.GetHeightFormula());
|
||||
dialog->SetAngle(currentLabel.GetAngleFormula());
|
||||
dialog->SetFormulaVisible(currentLabel.GetVisibilityTrigger());
|
||||
dialog->SetPieceId(toolId);
|
||||
dialog->EnbleShowMode(true);
|
||||
dialog->SetCenterPoint(currentLabel.GetCenterPoint());
|
||||
m_dialog = dialog;
|
||||
m_dialog->setModal(true);
|
||||
connect(m_dialog.data(), &DialogTool::DialogClosed, this, &DialogSeamAllowance::PlaceLabelDialogClosed);
|
||||
|
|
Loading…
Reference in New Issue
Block a user