Skip to content

Commit

Permalink
[TechDraw] - Cosmetic circle fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pavltom authored and WandererFan committed Oct 20, 2023
1 parent ce9c573 commit 4ea8558
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions src/Mod/TechDraw/App/Cosmetic.cpp
Expand Up @@ -255,7 +255,7 @@ void CosmeticEdge::Save(Base::Writer &writer) const
circ->Save(writer);
} else if (m_geometry->getGeomType() == TechDraw::GeomType::ARCOFCIRCLE) {
TechDraw::AOCPtr aoc = std::static_pointer_cast<TechDraw::AOC>(m_geometry);
aoc->Save(writer);
aoc->inverted()->Save(writer);
} else {
Base::Console().Warning("CE::Save - unimplemented geomType: %d\n", static_cast<int>(m_geometry->getGeomType()));
}
Expand Down Expand Up @@ -298,9 +298,9 @@ void CosmeticEdge::Restore(Base::XMLReader &reader)
TechDraw::AOCPtr aoc = std::make_shared<TechDraw::AOC> ();
aoc->Restore(reader);
aoc->setOCCEdge(GeometryUtils::edgeFromCircleArc(aoc));
m_geometry = aoc;
permaStart = aoc->startPnt;
permaEnd = aoc->endPnt;
m_geometry = aoc->inverted();
permaStart = aoc->center;
permaEnd = aoc->center;
permaRadius = aoc->radius;
} else {
Base::Console().Warning("CE::Restore - unimplemented geomType: %d\n", static_cast<int>(gType));
Expand Down
4 changes: 2 additions & 2 deletions src/Mod/TechDraw/Gui/TaskCosmeticCircle.cpp
Expand Up @@ -109,7 +109,7 @@ void TaskCosmeticCircle::changeEvent(QEvent *e)

void TaskCosmeticCircle::setUiPrimary()
{
setWindowTitle(QObject::tr("Create Cosmetic Line"));
setWindowTitle(QObject::tr("Create Cosmetic Circle"));
// Base::Console().Message("TCC::setUiPrimary() - m_center: %s is3d: %d\n",
// DU::formatVector(m_center).c_str(), m_is3d);
double rotDeg = m_partFeat->Rotation.getValue();
Expand Down Expand Up @@ -143,7 +143,7 @@ void TaskCosmeticCircle::setUiPrimary()

void TaskCosmeticCircle::setUiEdit()
{
setWindowTitle(QObject::tr("Edit Cosmetic Line"));
setWindowTitle(QObject::tr("Edit Cosmetic Circle"));

ui->rb2d1->setChecked(true);
ui->rb3d1->setChecked(false);
Expand Down

0 comments on commit 4ea8558

Please sign in to comment.