Invalid name of arc in modeling mode. Closes smart-pattern/valentina#40.
This commit is contained in:
parent
8d68cde576
commit
c263060fd0
|
@ -48,7 +48,8 @@
|
|||
- New layout generator option: Prefer one sheet solution.
|
||||
- [smart-pattern/valentina#15] Organization of groups - groups categories
|
||||
- Improve the property browser. Show full arc name.
|
||||
- [smart-pattern/valentina#45] Optimize tool box position for big screen resolutions.
|
||||
- [smart-pattern/valentina#45] Optimize tool box position for big screen resolutions.
|
||||
- [smart-pattern/valentina#40] Invalid name of arc in modeling mode.
|
||||
|
||||
# Version 0.6.2 (unreleased)
|
||||
- [#903] Bug in tool Cut Spline path.
|
||||
|
|
|
@ -379,7 +379,11 @@ void VArc::CreateName()
|
|||
{
|
||||
QString name = ARC_ + QString("%1").arg(this->GetCenter().name());
|
||||
|
||||
if (VAbstractCurve::id() != NULL_ID)
|
||||
if (getMode() == Draw::Modeling && getIdObject() != NULL_ID)
|
||||
{
|
||||
name += QString("_%1").arg(getIdObject());
|
||||
}
|
||||
else if (VAbstractCurve::id() != NULL_ID)
|
||||
{
|
||||
name += QString("_%1").arg(VAbstractCurve::id());
|
||||
}
|
||||
|
|
|
@ -381,7 +381,11 @@ void VEllipticalArc::CreateName()
|
|||
{
|
||||
QString name = ELARC_ + QString("%1").arg(this->GetCenter().name());
|
||||
|
||||
if (VAbstractCurve::id() != NULL_ID)
|
||||
if (getMode() == Draw::Modeling && getIdObject() != NULL_ID)
|
||||
{
|
||||
name += QString("_%1").arg(getIdObject());
|
||||
}
|
||||
else if (VAbstractCurve::id() != NULL_ID)
|
||||
{
|
||||
name += QString("_%1").arg(VAbstractCurve::id());
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user