[TechDraw] Reimplement Weld Symbol parent linking

This commit is contained in:
pavltom
2024-03-08 14:51:25 +01:00
committed by WandererFan
parent 5af2cc89cc
commit 7212cccae5
7 changed files with 71 additions and 127 deletions

View File

@@ -98,6 +98,12 @@ void DrawWeldSymbol::onSettingDocument()
void DrawWeldSymbol::onChanged(const App::Property* prop)
{
DrawView::onChanged(prop);
// If leader was switched, our coordinates were adjusted, but we want to stick to the new leader line
if (prop == &Leader && Leader.getValue()) {
X.setValue(0.0);
Y.setValue(0.0);
}
}
short DrawWeldSymbol::mustExecute() const