Browse Source

* Strip prefix off name in allocatename

git-svn-id: trunk@38373 -
michael 7 năm trước cách đây
mục cha
commit
1c36ce2605
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  1. 4 0
      packages/fcl-report/src/fpreport.pp

+ 4 - 0
packages/fcl-report/src/fpreport.pp

@@ -5509,6 +5509,10 @@ Var
 
 begin
   BaseName:=ClassName;
+  If SameText(Copy(BaseName,1,9),'TFPReport') then
+    Delete(BaseName,1,9)
+  else If SameText(Copy(BaseName,1,1),'T') then
+    Delete(BaseName,1,1);
   I:=1;
   Repeat
     Result:=BaseName+IntToStr(I);