Commit 28311ea5 authored by Dmitry Kazakov's avatar Dmitry Kazakov
Browse files

Fix issues with Grid settings becoming invalid when cropping

We should disable aspect ratio locking when the loading the
values from the external sources.

BUG:447588
parent 0c85656e
Pipeline #202798 passed with stage
in 70 minutes and 42 seconds
......@@ -143,15 +143,20 @@ void GridConfigWidget::setGridConfigImpl(const KisGridConfig &value)
ui->chkOffset->setChecked(true);
}
ui->offsetAspectButton->setKeepAspectRatio(m_d->gridConfig.offsetAspectLocked());
ui->spacingAspectButton->setKeepAspectRatio(m_d->gridConfig.spacingAspectLocked());
ui->chkShowGrid->setChecked(m_d->gridConfig.showGrid());
ui->spacingAspectButton->setKeepAspectRatio(false);
ui->intHSpacing->setMaximum(std::numeric_limits<int>::max());
ui->intVSpacing->setMaximum(std::numeric_limits<int>::max());
ui->intHSpacing->setValue(m_d->gridConfig.spacing().x());
ui->intVSpacing->setValue(m_d->gridConfig.spacing().y());
ui->spacingAspectButton->setKeepAspectRatio(m_d->gridConfig.spacingAspectLocked());
ui->offsetAspectButton->setKeepAspectRatio(false);
ui->intXOffset->setValue(m_d->gridConfig.offset().x());
ui->intYOffset->setValue(m_d->gridConfig.offset().y());
ui->offsetAspectButton->setKeepAspectRatio(m_d->gridConfig.offsetAspectLocked());
ui->intSubdivision->setValue(m_d->gridConfig.subdivision());
ui->chkSnapToGrid->setChecked(m_d->gridConfig.snapToGrid());
ui->angleLeftAngleSelector->setAngle(m_d->gridConfig.angleLeft());
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment