[TD] handle deletions of hatches

- also uniform line endings in ViewProviderLeader.cpp
This commit is contained in:
donovaly
2020-03-07 18:33:16 +01:00
committed by WandererFan
parent 3307e4bf7a
commit c390d64df0
5 changed files with 22 additions and 9 deletions

View File

@@ -181,7 +181,6 @@ void ViewProviderGeomHatch::updateGraphic(void)
}
}
void ViewProviderGeomHatch::getParameters(void)
{
Base::Reference<ParameterGrp> hGrp = App::GetApplication().GetUserParameter()
@@ -198,6 +197,14 @@ void ViewProviderGeomHatch::getParameters(void)
WeightPattern.setValue(weight);
}
bool ViewProviderGeomHatch::canDelete(App::DocumentObject *obj) const
{
// deletion of hatches don't destroy anything
// thus we can pass this action
Q_UNUSED(obj)
return true;
}
TechDraw::DrawGeomHatch* ViewProviderGeomHatch::getViewObject() const
{
return dynamic_cast<TechDraw::DrawGeomHatch*>(pcObject);