Properly wrap skin return value in createSkin().

This commit is contained in:
hns 2004-06-06 20:14:37 +00:00
parent 1e63855c80
commit 75f6e3515b

View file

@ -35,7 +35,7 @@ import java.text.*;
import java.io.*; import java.io.*;
/** /**
* *
*/ */
public class GlobalObject extends ImporterTopLevel { public class GlobalObject extends ImporterTopLevel {
Application app; Application app;
@ -186,7 +186,7 @@ public class GlobalObject extends ImporterTopLevel {
* @return a parsed skin object * @return a parsed skin object
*/ */
public Object createSkin(String str) { public Object createSkin(String str) {
return new Skin(str, app); return Context.toObject(new Skin(str, app), this);
} }
/** /**
@ -386,7 +386,7 @@ public class GlobalObject extends ImporterTopLevel {
*/ */
public String formatParagraphs(Object obj) { public String formatParagraphs(Object obj) {
String str = toString(obj); String str = toString(obj);
if (str == null) { if (str == null) {
return null; return null;
} }