From 438cc9dcb30add526898086952f1ea52de2a9f85 Mon Sep 17 00:00:00 2001 From: wp_xxyyzz Date: Tue, 28 Jun 2016 22:46:36 +0000 Subject: [PATCH] tvplanit: Fix xml parser crashing when reading localization file. git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4860 8e941d3f-bd1b-0410-a28a-d453659cc2b4 --- components/tvplanit/source/vpxchrflt.pas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/tvplanit/source/vpxchrflt.pas b/components/tvplanit/source/vpxchrflt.pas index 21ed320a1..dfeaa8c5b 100644 --- a/components/tvplanit/source/vpxchrflt.pas +++ b/components/tvplanit/source/vpxchrflt.pas @@ -503,7 +503,7 @@ var Ch : TVpUCS4Char; IL : Boolean; begin - if FLastChar = '' then begin + if (FLastChar = '') or (FLastChar = #0) then begin // wp: added #0 csGetChar(Ch, IL); VpUcs4ToWideChar(Ch, Result); Dec(FLinePos);