Properly wrap skin return value in createSkin().
This commit is contained in:
parent
1e63855c80
commit
75f6e3515b
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue