Skip to content

Commit 20e2134

Browse files
authored
[Bug]: Snippet move to page fails if not top level
`#moveToPage:` tells the source page to remove it, but it should be telling its parent (which may be a snippet rather than the page).
1 parent c512b4a commit 20e2134

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/Lepiter-Core/LeSnippet.class.st‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ LeSnippet >> moveDownThroughCommand [
424424

425425
{ #category : #'api - editing' }
426426
LeSnippet >> moveToPage: aPage [
427-
self page removeSnippet: self.
427+
self removeSelf.
428428
aPage addSnippet: self
429429
]
430430

0 commit comments

Comments
 (0)