This patches setTokenShape so that it actually uses the 2nd parameter of tokenID. Currently it defaults to tokenInContext regardless if 2nd parameter is passed or not.
setTokenShape fix
Code: Select all
Index: src/net/rptools/maptool/client/functions/VBL_Functions.java
===================================================================
--- src/net/rptools/maptool/client/functions/VBL_Functions.java (revision 5944)
+++ src/net/rptools/maptool/client/functions/VBL_Functions.java (working copy)
@@ -112,7 +112,6 @@
throw new ParserException(I18N.getText("macro.function.general.unknownToken", functionName, parameters.get(1).toString()));
}
- token = ((MapToolVariableResolver) parser.getVariableResolver()).getTokenInContext();
Token.TokenShape newShape = Token.TokenShape.valueOf(parameters.get(0).toString().toUpperCase().trim().replace(" ", "_"));
token.setShape(newShape);