mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-18 15:19:19 +02:00
EditorOptions, fix importing old background color
git-svn-id: trunk@25637 -
This commit is contained in:
parent
b4cb028f34
commit
83f36b4506
@ -4338,6 +4338,15 @@ begin
|
|||||||
AttributeAtPos[i].LoadFromXml(aXMLConfig, TmpPath, Def, FormatVersion);
|
AttributeAtPos[i].LoadFromXml(aXMLConfig, TmpPath, Def, FormatVersion);
|
||||||
end;
|
end;
|
||||||
FreeAndNil(EmptyDef);
|
FreeAndNil(EmptyDef);
|
||||||
|
|
||||||
|
// Version 5 and before stored the global background on the Whitespace attribute.
|
||||||
|
// If a whiespace Attribute was loaded (UseSchemeGlobals=false) then copy it
|
||||||
|
if (FormatVersion <= 5) and (DefaultAttribute <> nil) and
|
||||||
|
(FHighlighter <> nil) and (FHighlighter.WhitespaceAttribute <> nil) and
|
||||||
|
(Attribute[Highlighter.WhitespaceAttribute.Name] <> nil) and
|
||||||
|
(not Attribute[Highlighter.WhitespaceAttribute.Name].UseSchemeGlobals)
|
||||||
|
then
|
||||||
|
DefaultAttribute.Background := Attribute[Highlighter.WhitespaceAttribute.Name].Background;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TColorSchemeLanguage.SaveToXml(aXMLConfig: TRttiXMLConfig; aPath: String;
|
procedure TColorSchemeLanguage.SaveToXml(aXMLConfig: TRttiXMLConfig; aPath: String;
|
||||||
|
Loading…
Reference in New Issue
Block a user