IDE: Initialize return value for "Enclose in $IFDEF". Issue #24713, patch from Joachim Förster.

git-svn-id: trunk@42130 -
This commit is contained in:
juha 2013-07-18 10:10:13 +00:00
parent 82cc90a009
commit 4aecd50e0f

View File

@ -208,8 +208,7 @@ begin
DeleteSelected;
end;
procedure TCondForm.ListBoxKeyDown(Sender: TObject; var Key: Word;
Shift: TShiftState);
procedure TCondForm.ListBoxKeyDown(Sender: TObject; var Key: Word; Shift: TShiftState);
begin
if Key = VK_DELETE then begin
DeleteSelected;
@ -279,8 +278,10 @@ var
p, p1: Integer;
IsElse, IsTwo, HasNewline: Boolean;
Tail, Indent: string;
function ifdef(s:string):string;
begin
Result :='';
if (s <>'') and (s[1] = '!') then begin
if IsPascal then
Result := 'N'
@ -293,6 +294,7 @@ var
else
Result := '#if' + Result + 'def ' + s;
end;
begin
Result := Text;
cond := ShowConDefDlg;