Commit 47c90381 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

serialization over celldesigner does not prevent dimension of text label

parent 6e1b429b
......@@ -63,12 +63,7 @@ public class MultiParserTest extends SbmlTestFunctions {
String pngFilePath = pathWithouExtension.concat(".png");
nig.saveToFile(pngFilePath);
CellDesignerXmlParser cellDesignerXmlParser = new CellDesignerXmlParser();
String xmlString = cellDesignerXmlParser.model2String(model);
InputStream is = new ByteArrayInputStream(xmlString.getBytes("UTF-8"));
Model model2 = cellDesignerXmlParser.createModel(new ConverterParams().inputStream(is).sizeAutoAdjust(false));
Model model2 = super.getModelAfterCellDEsignerSerializing(model);
AbstractImageGenerator.Params params2 = new AbstractImageGenerator.Params().height(model2.getHeight())
.width(model2.getWidth()).nested(true).scale(1).level(20).x(0).y(0).model(model2);
......
......@@ -158,10 +158,16 @@ public class SbmlTestFunctions {
Model model2 = parser.createModel(new ConverterParams().inputStream(is).sizeAutoAdjust(false));
for (BioEntity bioEntity : model2.getBioEntities()) {
bioEntity.setZ(null);
bioEntity.setZ(0);
if (bioEntity instanceof Element) {
((Element) bioEntity).setNameBorder(((Element) bioEntity).getBorder());
}
}
for (BioEntity bioEntity : model.getBioEntities()) {
bioEntity.setZ(null);
bioEntity.setZ(0);
if (bioEntity instanceof Element) {
((Element) bioEntity).setNameBorder(((Element) bioEntity).getBorder());
}
}
return model2;
}
......
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