Commit 9efbf1b3 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

defined z-index shouldn't influence algorithm assigning z-index

parent 54fd328a
......@@ -87,12 +87,6 @@ public class ZIndexPopulator {
}
});
for (BioEntity bioEntity : bioEntities) {
if (bioEntity.getZ() != null) {
maxZIndex = Math.max(maxZIndex, bioEntity.getZ());
}
}
for (BioEntity bioEntity : bioEntities) {
if (bioEntity.getZ() == null) {
bioEntity.setZ(++maxZIndex);
......
......@@ -36,7 +36,7 @@ public class ZIndexPopulatorTest {
assertNotNull(speciesWithoutZIndex.getZ());
assertTrue(speciesWithoutZIndex.getZ() > speciesWithZIndex.getZ());
assertTrue(speciesWithoutZIndex.getZ() < speciesWithZIndex.getZ());
}
@Test
......
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