[TD]fix default scale
This commit is contained in:
committed by
WandererFan
parent
b98ada4c07
commit
c9f6aea463
@@ -577,6 +577,12 @@ double DrawView::prefScale(void)
|
||||
Base::Reference<ParameterGrp> hGrp = App::GetApplication().GetUserParameter()
|
||||
.GetGroup("BaseApp")->GetGroup("Preferences")->GetGroup("Mod/TechDraw/General");
|
||||
double result = hGrp->GetFloat("DefaultViewScale", 1.0);
|
||||
if (ScaleType.isValue("Page")) {
|
||||
auto page = findParentPage();
|
||||
if (page) {
|
||||
result = page->Scale.getValue();
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user