[TD]fix bad preference keys
- GeomHatch color, centerline color, ortho balloon filled triangle end
This commit is contained in:
@@ -186,7 +186,7 @@ void ViewProviderGeomHatch::getParameters(void)
|
||||
Base::Reference<ParameterGrp> hGrp = App::GetApplication().GetUserParameter()
|
||||
.GetGroup("BaseApp")->GetGroup("Preferences")->GetGroup("Mod/TechDraw/Colors");
|
||||
App::Color fcColor;
|
||||
fcColor.setPackedValue(hGrp->GetUnsigned("Hatch", 0x00FF0000));
|
||||
fcColor.setPackedValue(hGrp->GetUnsigned("GeomHatch", 0x00FF0000));
|
||||
ColorPattern.setValue(fcColor);
|
||||
|
||||
hGrp = App::GetApplication().GetUserParameter().GetGroup("BaseApp")->GetGroup("Preferences")->GetGroup("Mod/TechDraw/Decorations");
|
||||
@@ -197,12 +197,12 @@ 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;
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user