Commit df2159f4 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

export of structural state should use structural state z index

parent 0023d8c1
......@@ -277,7 +277,7 @@ public class ModificationResidueExporter {
double x = structuralState.getPosition().getX();
double y = structuralState.getPosition().getY();
BoundingBox boundingBox = new BoundingBox();
boundingBox.setPosition(new Point(x, y, structuralState.getSpecies().getZ() + 1));
boundingBox.setPosition(new Point(x, y, structuralState.getZ()));
Dimensions dimensions = new Dimensions();
dimensions.setWidth(width);
dimensions.setHeight(height);
......
......@@ -536,6 +536,7 @@ public class SbmlExporterTest extends SbmlTestFunctions {
structuralState.setWidth(element.getWidth());
structuralState.setHeight(20.0);
structuralState.setFontSize(10.0);
structuralState.setZ(element.getZ() + 2);
return structuralState;
}
......
......@@ -64,6 +64,7 @@ public class SbmlModelUtilsTest {
}
}
@SuppressWarnings("deprecation")
private Model createModelWithLayoutAndRender() {
SBMLDocument doc = new SBMLDocument(3, 1);
Model result = doc.createModel();
......
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