Fixed issue #954. Valentina produces empty rotation operation.
--HG-- branch : release
This commit is contained in:
parent
ced67250a7
commit
6c63c0d948
|
@ -14,6 +14,7 @@
|
||||||
- [#939] Calling Formula Wizard through property explorer doesn't refresh formula.
|
- [#939] Calling Formula Wizard through property explorer doesn't refresh formula.
|
||||||
- [#937] Wrong symmetrical seam corners on pieces.
|
- [#937] Wrong symmetrical seam corners on pieces.
|
||||||
- [#942] Save Layout mode ignores paper format for tiled PDF.
|
- [#942] Save Layout mode ignores paper format for tiled PDF.
|
||||||
|
- [#954] Valentina produces empty rotation operation.
|
||||||
|
|
||||||
# Version 0.6.1 October 23, 2018
|
# Version 0.6.1 October 23, 2018
|
||||||
- [#885] Regression. Broken support for multi size measurements.
|
- [#885] Regression. Broken support for multi size measurements.
|
||||||
|
|
|
@ -246,12 +246,20 @@ void DialogRotation::ChosenObject(quint32 id, const SceneObject &type)
|
||||||
SCASSERT(operation != nullptr)
|
SCASSERT(operation != nullptr)
|
||||||
|
|
||||||
if (objects.contains(id))
|
if (objects.contains(id))
|
||||||
|
{
|
||||||
|
if (objects.size() > 1)
|
||||||
{
|
{
|
||||||
// It's not really logical for a user that a center of rotation no need to select.
|
// It's not really logical for a user that a center of rotation no need to select.
|
||||||
// To fix this issue we just silently remove it from the list.
|
// To fix this issue we just silently remove it from the list.
|
||||||
objects.removeOne(id);
|
objects.removeOne(id);
|
||||||
operation->SetObjects(objects.toVector());
|
operation->SetObjects(objects.toVector());
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
emit ToolTip(tr("This point cannot be origin point. Please, select another origin point"));
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (SetObject(id, ui->comboBoxOriginPoint, QString()))
|
if (SetObject(id, ui->comboBoxOriginPoint, QString()))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user