Commit f1759f9c authored by PONCELET's avatar PONCELET
Browse files

bug

parent 3dd1b75e
......@@ -14,9 +14,9 @@ public class SCAttributeAdapter {
if(attribute.getType()==null)
{
//treat as String
return Arrays.asList(String.format("addAttribute(\"%s\", \"%s\");","ATT_"+attribute.name.toUpperCase(), attribute.value == null ? "":attribute.value.replace("+","")));
return Arrays.asList(String.format("addAttribute(%s, \"%s\");","ATT_"+attribute.name.toUpperCase(), attribute.value == null ? "":attribute.value.replace("+","")));
}
return Arrays.asList(String.format("addAttribute(\"%s\", %s);","ATT_"+attribute.name.toUpperCase(), formatAttribute(attribute,attribute.getType())));
return Arrays.asList(String.format("addAttribute(%s, %s);","ATT_"+attribute.name.toUpperCase(), formatAttribute(attribute,attribute.getType())));
}
public static List<String> getSourceCode(Variable variable, Attribute attribute) {
if(attribute.getName().compareTo("_FillValue")==0){
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment