Skip to content
Snippets Groups Projects
Commit 795b8589 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

consider elemnts properly layout if they are also not in the upper left corner

parent 0f6126e8
No related branches found
No related tags found
3 merge requests!716Merge 12.2.0,!715merge 12.2.0,!689Resolve "Overlapping compartments in non-layout SBML upload"
......@@ -219,7 +219,7 @@ public class ApplySimpleLayoutModelCommand extends ApplyLayoutModelCommand {
minPoint.getY() + COMPARTMENT_BORDER, dimension.getWidth() - COMPARTMENT_BORDER * 2,
dimension.getHeight() - COMPARTMENT_BORDER * 2);
for (Element element : compartment.getElements()) {
if (!elements.contains(element) && element.getBorder()!=null) {
if (!elements.contains(element) && element.getBorder() != null && element.getX() != 0 && element.getY() != 0) {
border.add(element.getBorder());
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment