mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2026-03-13 09:24:25 +08:00
In TMainform.SetupSynEditors, check if loop editor variable really exists - which is not the case for at least one user. Fixes issue #2651.
This commit is contained in:
@@ -9309,6 +9309,9 @@ begin
|
||||
BaseEditor.Options := BaseEditor.Options - [eoTabsToSpaces];
|
||||
ActiveLineColor := StringToColor(GetRegValue(REGNAME_SQLCOLACTIVELINE, ColorToString(DEFAULT_SQLCOLACTIVELINE)));
|
||||
for i:=0 to Editors.Count-1 do begin
|
||||
// See issue #2651:
|
||||
if Editors[i]=nil then
|
||||
Continue;
|
||||
Editor := Editors[i] as TSynMemo;
|
||||
if Editor = nil then
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user