On 17-09-15 23:11, Nicolai Hess wrote:
DragWell startDrag: evt WorldState addDeferredUIMessage: [ evt hand grabMorph: self copy ].
calls Morph>>#copy and this makes a veryDeepCopy.
I don't know exactly how this affects the other rubric text morphs, but replacing self copy with self shallowCopy seems to work.
Thanks. So there's something wrong with how I hold onto the Rubric text morph and or model. Something shouldn't be copied there. We don't have many examples of using veryDeepCopy and the fixups needed in image, and I'm not sure I fully understand the class comment of DeepCopier :( The clone menu option for a code card does a duplicate, and that creates the same problem as shown with the color panel. In CodeCard I hold onto both the model and the morph. They are connected using announcements, if I understand it correctly? Shouldn't that connection be rewired when doing a copy? Stephan