summaryrefslogtreecommitdiff
path: root/src/corelib
diff options
context:
space:
mode:
Diffstat (limited to 'src/corelib')
-rw-r--r--src/corelib/fpg_stringutils.pas2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/fpg_stringutils.pas b/src/corelib/fpg_stringutils.pas
index f24c9106..900ecd2a 100644
--- a/src/corelib/fpg_stringutils.pas
+++ b/src/corelib/fpg_stringutils.pas
@@ -329,7 +329,7 @@ var
b: string;
e: string;
begin
- if UTF8Length(SubStr) = 0 then
+ if Length(SubStr) = 0 then
Exit; //==>
b := UTF8Copy(AText, 1, Index-1); // beginning string
e := UTF8Copy(AText, Index, UTF8Length(AText)-Index+1); // ending string