Skip to content

Commit 00462f9

Browse files
committed
Fix to #potentialEmbeddingTargets
1 parent 49f516f commit 00462f9

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
'From Cuis7.5 [latest update: #7688] on 4 November 2025 at 1:21:25 pm'!
2+
3+
!Morph methodsFor: 'meta-actions' stamp: 'jmv 11/4/2025 13:20:43'!
4+
potentialEmbeddingTargets
5+
"Return the potential targets for embedding the receiver"
6+
| myRect myWorld fb |
7+
owner ifNil:[^#()].
8+
myWorld := owner world ifNil: [^#()].
9+
myRect := self displayFullBounds.
10+
^Array streamContents: [ :strm |
11+
myWorld allMorphsBut: self do: [ :m |
12+
(m isReallyVisible
13+
and: [ m isReallyUnlocked
14+
and: [
15+
fb := m displayFullBounds.
16+
(fb notNil and: [fb intersects: myRect])
17+
and: [(#(HaloMorph HaloHandleMorph) statePointsTo: m class name) not]]])
18+
ifTrue: [ strm nextPut: m ]]].! !
19+

0 commit comments

Comments
 (0)