FpDebug: fix ":flatten" with embedded "[0..n]" slice in display mapping expression.

(cherry picked from commit 0b1bcf35de)
This commit is contained in:
Martin 2025-05-24 09:41:22 +02:00
parent 5d41a0a20f
commit b542a0f991

View File

@ -3229,7 +3229,11 @@ var
DisplayVal.AddReference;
end
else
begin
AMapExpr.BeginNeedCopy;
DisplayVal := EvalExression(AMapExpr, ACurrentVal, OrigVal, False, ACurDepth, ACurKeyIdx, ACurKey);
AMapExpr.EndNeedCopy;
end;
if (DisplayVal <> nil) then begin
ResIdx := InternalAdd(DisplayVal, ACurDepth, ACurKeyIdx, ACurKey);