Fix MSVC warnings.
This commit is contained in:
parent
09d09b5a87
commit
7d759ec92b
|
@ -442,7 +442,7 @@ void DialogFlippingByLine::ShowSourceDetails(int row)
|
||||||
{
|
{
|
||||||
ui->labelAlias->setText(tr("Alias:"));
|
ui->labelAlias->setText(tr("Alias:"));
|
||||||
|
|
||||||
auto SetValue = [sourceItem](QComboBox *box, const QString &value, const QString &def)
|
auto SetValue = [](QComboBox *box, const QString &value, const QString &def)
|
||||||
{
|
{
|
||||||
box->blockSignals(true);
|
box->blockSignals(true);
|
||||||
|
|
||||||
|
@ -463,8 +463,7 @@ void DialogFlippingByLine::ShowSourceDetails(int row)
|
||||||
SetValue(ui->comboBoxPenStyle, sourceItem.penStyle, TypeLineDefault);
|
SetValue(ui->comboBoxPenStyle, sourceItem.penStyle, TypeLineDefault);
|
||||||
|
|
||||||
if (sourceItem.penStyle.isEmpty() || sourceItem.penStyle == TypeLineDefault)
|
if (sourceItem.penStyle.isEmpty() || sourceItem.penStyle == TypeLineDefault)
|
||||||
{
|
{;
|
||||||
const QSharedPointer<VAbstractCurve> curve = data->GeometricObject<VAbstractCurve>(sourceItem.id);
|
|
||||||
int index = ui->comboBoxPenStyle->currentIndex();
|
int index = ui->comboBoxPenStyle->currentIndex();
|
||||||
ui->comboBoxPenStyle->setItemText(index, '<' + tr("Default") + '>');
|
ui->comboBoxPenStyle->setItemText(index, '<' + tr("Default") + '>');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user