FIX: in the Font Options, an incorrect save prompt may appear if the initial font size is 0

it's because the initial value is 0 when calculating the fingerprint, and it has been set to the minimum value after initialization.

(cherry picked from commit 0ae14457a9)
This commit is contained in:
rich2014 2025-12-07 11:12:10 +08:00 committed by Alexander Koblov
commit b70e58ecf2

View file

@ -188,6 +188,7 @@ begin
begin
LocalVisualFontElements[iFontIndex].FontEdit.Text := gFonts[TDCFont(iFontIndex)].Name;
FontOptionsToFont(gFonts[TDCFont(iFontIndex)], LocalVisualFontElements[iFontIndex].FontEdit.Font);
LocalVisualFontElements[iFontIndex].FontSpindEdit.HandleNeeded;
LocalVisualFontElements[iFontIndex].FontSpindEdit.Value := gFonts[TDCFont(iFontIndex)].Size;
end;
end;