UIPainterView.st
changeset 2212 7224d23c4a37
parent 2197 873c7b960233
child 2221 8ac60d4545ad
--- a/UIPainterView.st	Tue Dec 11 16:05:01 2007 +0100
+++ b/UIPainterView.st	Tue Dec 11 16:05:04 2007 +0100
@@ -395,7 +395,11 @@
         containerToPasteInto notNil ifTrue:[
             "/ search up parent list for something we can paste into
             [containerToPasteInto notNil and:[(self canPasteInto:containerToPasteInto) not]] whileTrue:[
-                containerToPasteInto := containerToPasteInto container.
+                containerToPasteInto == self ifTrue:[
+                    containerToPasteInto := nil
+                ] ifFalse:[
+                    containerToPasteInto := containerToPasteInto container.
+                ].
             ].
             self selection:containerToPasteInto.
         ].