mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-06-06 09:58:16 +02:00
ideintf: improve TBoolPropertyEditor from Gerard Visent (#0012607)
git-svn-id: trunk@17472 -
This commit is contained in:
parent
c7cadabc8d
commit
d083f486d2
@ -2999,9 +2999,10 @@ procedure TBoolPropertyEditor.SetValue(const NewValue: ansistring);
|
||||
var
|
||||
I: Integer;
|
||||
begin
|
||||
if CompareText(NewValue, 'False') = 0 then
|
||||
if (CompareText(NewValue, 'False') = 0) or (CompareText(NewValue, 'F') = 0) then
|
||||
I := 0
|
||||
else if CompareText(NewValue, 'True') = 0 then
|
||||
else
|
||||
if (CompareText(NewValue, 'True') = 0) or (CompareText(NewValue, 'T') = 0) then
|
||||
I := 1
|
||||
else
|
||||
I := StrToInt(NewValue);
|
||||
|
Loading…
Reference in New Issue
Block a user