[TechDraw] Simplify code getting default line weights
This commit is contained in:
committed by
WandererFan
parent
bbbc044934
commit
f30c30b06f
@@ -178,10 +178,7 @@ void ViewProviderGeomHatch::updateGraphic(void)
|
||||
|
||||
void ViewProviderGeomHatch::getParameters(void)
|
||||
{
|
||||
int lgNumber = Preferences::lineGroup();
|
||||
auto lg = TechDraw::LineGroup::lineGroupFactory(lgNumber);
|
||||
double weight = lg->getWeight("Graphic");
|
||||
delete lg; //Coverity CID 174667
|
||||
double weight = TechDraw::LineGroup::getDefaultWidth("Graphic");
|
||||
WeightPattern.setValue(weight);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user