You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@thrift.apache.org by je...@apache.org on 2018/01/19 18:22:23 UTC
[2/2] thrift git commit: THRIFT-4462 First line in Console duplicated
Client: Delphi Patch: Anton Shchyrov
THRIFT-4462 First line in Console duplicated
Client: Delphi
Patch: Anton Shchyrov
Slightly modified by JensG
Project: http://git-wip-us.apache.org/repos/asf/thrift/repo
Commit: http://git-wip-us.apache.org/repos/asf/thrift/commit/b636ffb6
Tree: http://git-wip-us.apache.org/repos/asf/thrift/tree/b636ffb6
Diff: http://git-wip-us.apache.org/repos/asf/thrift/diff/b636ffb6
Branch: refs/heads/master
Commit: b636ffb613ab49e0f037fbe696d28a4b17a72c5f
Parents: 36c0b34
Author: Jens Geyer <je...@apache.org>
Authored: Fri Jan 19 19:20:29 2018 +0100
Committer: Jens Geyer <je...@apache.org>
Committed: Fri Jan 19 19:21:57 2018 +0100
----------------------------------------------------------------------
lib/delphi/src/Thrift.Console.pas | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/thrift/blob/b636ffb6/lib/delphi/src/Thrift.Console.pas
----------------------------------------------------------------------
diff --git a/lib/delphi/src/Thrift.Console.pas b/lib/delphi/src/Thrift.Console.pas
index 1dbb309..16fa8af 100644
--- a/lib/delphi/src/Thrift.Console.pas
+++ b/lib/delphi/src/Thrift.Console.pas
@@ -99,10 +99,9 @@ begin
begin
idx := FMemo.Count - 1;
if idx < 0 then
- begin
- FMemo.Add( S );
- end;
- FMemo[idx] := FMemo[idx] + S;
+ FMemo.Add( S )
+ else
+ FMemo[idx] := FMemo[idx] + S;
end;
FLineBreak := bWriteLine;
end;