This commit is contained in:
Offray Vladimir Luna Cárdenas 2017-01-08 13:23:25 +00:00
parent 7f3450184d
commit 20bb08e412

View File

@ -126,14 +126,12 @@ GrafoscopioNode >> ancestors [
currentNode := self.
ancestors := OrderedCollection new.
[currentNode level > 0]
[ currentNode parent notNil and: [ currentNode level > 0 ] ]
whileTrue: [
ancestors add: currentNode parent.
currentNode := currentNode parent.].
currentNode := currentNode parent].
ancestors := ancestors reversed.
^ ancestors
^ ancestors
]
{ #category : #accessing }