Fixed issue #954. Valentina produces empty rotation operation.

(grafted from 0108ef767e2447e5b5f39378bcf245e25947a25d)

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2019-02-24 17:29:12 +02:00
parent d5b50a7850
commit 782b257c04
2 changed files with 13 additions and 4 deletions

View File

@ -28,6 +28,7 @@
- [#939] Calling Formula Wizard through property explorer doesn't refresh formula.
- [#937] Wrong symmetrical seam corners on pieces.
- [#942] Save Layout mode ignores paper format for tiled PDF.
- [#954] Valentina produces empty rotation operation.
# Version 0.6.1 October 23, 2018
- [#885] Regression. Broken support for multi size measurements.

View File

@ -249,10 +249,18 @@ void DialogRotation::ChosenObject(quint32 id, const SceneObject &type)
if (objects.contains(id))
{
// 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.
objects.removeOne(id);
operation->SetObjects(objects.toVector());
if (objects.size() > 1)
{
// 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.
objects.removeOne(id);
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()))