[TD] handle deletions of hatches
- also uniform line endings in ViewProviderLeader.cpp
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user