Fixed bug with setting default height and size. Relative to the issue #418.
--HG-- branch : develop
This commit is contained in:
parent
f7814ed6ba
commit
7ef2c22c47
|
@ -2661,8 +2661,7 @@ void MainWindow::SetDefaultHeight()
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
const int height = static_cast<int>(UnitConvertor(pattern->height(), *pattern->GetPatternUnit(), Unit::Cm));
|
index = gradationHeights->findText(QString().setNum(pattern->height()));
|
||||||
index = gradationHeights->findText(QString().setNum(height));
|
|
||||||
if (index != -1)
|
if (index != -1)
|
||||||
{
|
{
|
||||||
gradationHeights->setCurrentIndex(index);
|
gradationHeights->setCurrentIndex(index);
|
||||||
|
@ -2686,8 +2685,7 @@ void MainWindow::SetDefaultSize()
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
const int size = static_cast<int>(UnitConvertor(pattern->size(), *pattern->GetPatternUnit(), Unit::Cm));
|
index = gradationSizes->findText(QString().setNum(pattern->size()));
|
||||||
index = gradationSizes->findText(QString().setNum(size));
|
|
||||||
if (index != -1)
|
if (index != -1)
|
||||||
{
|
{
|
||||||
gradationSizes->setCurrentIndex(index);
|
gradationSizes->setCurrentIndex(index);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user