From b83fec62bfef8be761313163632ec2ab190eb495 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Wed, 23 Sep 2020 14:58:03 +0300 Subject: [PATCH] Fix removing a pin in the Seam Allowance tool dialog. --- ChangeLog.txt | 1 + src/libs/vtools/dialogs/tools/piece/dialogseamallowance.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ChangeLog.txt b/ChangeLog.txt index 5e5b3c291..5905ced0b 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -36,6 +36,7 @@ - Fix crash after uniting three pieces in sequence. - Incorrect conversion to newer curve format. - Elide a variable description in the formula wizard. +- Fix removing a pin in the Seam Allowance tool dialog. # Version 0.6.1 October 23, 2018 - [#885] Regression. Broken support for multi size measurements. diff --git a/src/libs/vtools/dialogs/tools/piece/dialogseamallowance.cpp b/src/libs/vtools/dialogs/tools/piece/dialogseamallowance.cpp index 763c5a8b3..b65f0f9ab 100644 --- a/src/libs/vtools/dialogs/tools/piece/dialogseamallowance.cpp +++ b/src/libs/vtools/dialogs/tools/piece/dialogseamallowance.cpp @@ -2855,7 +2855,7 @@ void DialogSeamAllowance::InitPinPoint(QComboBox *box) box->addItem(data->GetGObject(pin)->name(), pin); } - const int index = uiTabPaths->comboBoxNodes->findData(currentId); + const int index = box->findData(currentId); if (index != -1) { box->setCurrentIndex(index);