TechDraw - Undo for Cosmetics Vertices and Lines
This commit is contained in:
committed by
Bernd Hahnebach
parent
df215f4fce
commit
2a1597cded
@@ -161,11 +161,15 @@ void TaskCosVertex::updateUi(void)
|
||||
|
||||
void TaskCosVertex::addCosVertex(QPointF qPos)
|
||||
{
|
||||
Gui::Command::openCommand(QT_TRANSLATE_NOOP("Command", "Add Cosmetic Vertex"));
|
||||
|
||||
// Base::Console().Message("TCV::addCosVertex(%s)\n", TechDraw::DrawUtil::formatVector(qPos).c_str());
|
||||
Base::Vector3d pos(qPos.x(), -qPos.y());
|
||||
// int idx =
|
||||
(void) m_baseFeat->addCosmeticVertex(pos);
|
||||
m_baseFeat->requestPaint();
|
||||
|
||||
Gui::Command::commitCommand();
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user