mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-12 07:55:58 +02:00
parent
8295aac859
commit
d369e9fa44
@ -800,10 +800,10 @@ end;
|
|||||||
|
|
||||||
function TValueListEditor.InsertRow(const KeyName, Value: string; Append: Boolean): Integer;
|
function TValueListEditor.InsertRow(const KeyName, Value: string; Append: Boolean): Integer;
|
||||||
var
|
var
|
||||||
NewInd, NewCol: Integer;
|
NewInd, NewRow: Integer;
|
||||||
Line: String;
|
Line: String;
|
||||||
begin
|
begin
|
||||||
if (KeyName <> '') and (Value <> '') then
|
if not ((KeyName = '') and (Value = '')) then
|
||||||
Line := KeyName + Strings.NameValueSeparator + Value
|
Line := KeyName + Strings.NameValueSeparator + Value
|
||||||
else
|
else
|
||||||
Line := '';
|
Line := '';
|
||||||
@ -832,8 +832,8 @@ begin
|
|||||||
NewInd := Row - FixedRows;
|
NewInd := Row - FixedRows;
|
||||||
end;
|
end;
|
||||||
Result := NewInd;
|
Result := NewInd;
|
||||||
NewCol := NewInd + FixedRows;
|
NewRow := NewInd + FixedRows;
|
||||||
if (NewCol <> Col) then Col := NewCol;
|
if (NewRow <> Row) then Row := NewRow;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TValueListEditor.InsertRowWithValues(Index: Integer;
|
procedure TValueListEditor.InsertRowWithValues(Index: Integer;
|
||||||
|
Loading…
Reference in New Issue
Block a user