[TD]fix ISOLineSpacing preference not applied

This commit is contained in:
wandererfan
2025-08-28 19:08:34 -04:00
committed by Chris Hennes
parent 2244a16790
commit f5db0c6589
2 changed files with 7 additions and 3 deletions

View File

@@ -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()

View File

@@ -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();