[TD]fix ISOLineSpacing preference not applied
This commit is contained in:
committed by
Chris Hennes
parent
2244a16790
commit
f5db0c6589
@@ -524,9 +524,13 @@ int Preferences::BreakLineStyle()
|
||||
return getPreferenceGroup("Decorations")->GetInt("LineStyleBreak", 0) + 1;
|
||||
}
|
||||
|
||||
int Preferences::LineSpacingISO()
|
||||
|
||||
// LineSpacingISO is stored as a double in DlgPrefsTechDrawDimensionsImp.cpp but was being accessed
|
||||
// as an int here, so the default was always returned. If we make DlgPrefsTechDrawDimensionsImp handle
|
||||
// ints, then anybody who had set a custom spacing would need to update their preference.
|
||||
float Preferences::LineSpacingISO()
|
||||
{
|
||||
return getPreferenceGroup("Dimensions")->GetInt("LineSpacingFactorISO", 2);
|
||||
return getPreferenceGroup("Dimensions")->GetFloat("LineSpacingFactorISO", 2);
|
||||
}
|
||||
|
||||
std::string Preferences::currentLineDefFile()
|
||||
|
||||
@@ -129,7 +129,7 @@ public:
|
||||
static int LineCapStyle();
|
||||
static int LineCapIndex();
|
||||
|
||||
static int LineSpacingISO();
|
||||
static float LineSpacingISO();
|
||||
|
||||
static std::string currentLineDefFile();
|
||||
static std::string currentElementDefFile();
|
||||
|
||||
Reference in New Issue
Block a user