diff --git a/src/layout/layout.rs b/src/layout/layout.rs index 15f3c1d..d56e9e9 100644 --- a/src/layout/layout.rs +++ b/src/layout/layout.rs @@ -344,8 +344,8 @@ impl Layout { } } - /// Checks if a node is "high-level", and if yes, returns its center - pub fn center_of_high_level_node(&self, node: NodeIndex) -> Option { + /// Checks if a node is not a primitive part of a compound, and if yes, returns its center + pub fn center_of_compoundless_node(&self, node: NodeIndex) -> Option { match node { NodeIndex::Primitive(primitive) => { if self