Pass a clone of the parameter map to macros, so if the macro

modifyes the object we still have the original version.
This commit is contained in:
hns 2002-05-24 14:30:04 +00:00
parent eb2f292877
commit 5b862803c6

View file

@ -258,7 +258,9 @@ public class Skin {
Object handlerObject = null;
Object[] arguments = new Object[1];
arguments[0] = parameters;
// pass a clone of the parameter map so if the script changes it,
// we still keep the original version.
arguments[0] = parameters.clone ();
// flag to tell whether we found our invocation target object
boolean objectFound = true;