The Trunk: Morphic-ct.2206.mcz

[email protected]
Newsgroups gmane.comp.lang.smalltalk.squeak.general
Message-ID <[email protected]>
Christoph Thiede uploaded a new version of Morphic to project The Trunk:
http://source.squeak.org/trunk/Morphic-ct.2206.mcz

==================== Summary ====================

Name: Morphic-ct.2206
Author: ct
Time: 6 May 2026, 10:42:55.633389 pm
UUID: f9370c6e-a42a-44a3-8377-196da8c13b3f
Ancestors: Morphic-ct.2205

Fixes SmartRefStream loading of BorderedMorphs inside TransformMorphs which was broken due to a premature damage progation. This also fixes SquotImageToFileStoreTest>>#testWithWorkspaceMorph. :-)

=============== Diff against Morphic-ct.2205 ===============

Item was changed:
  ----- Method: BorderedMorph>>readDataFrom:size: (in category 'objects from disk') -----
  readDataFrom: aDataStream size: varsOnDisk
  
+ 	| bc bw oldOwner |
- 	| bc bw |
  	super readDataFrom: aDataStream size: varsOnDisk.
  	
+ 	"Update borderStyle for older versions of the receiver. Use temps because of side-effects. Temporarily set owner to nil to avoid change reporting in midst of reading to bubble up and break not-yet-initialized owners (this happens eg when reading + writing a PluggableTextMorph because TransformMorph>>invalidRect:from: needs the transform variable)."
+ 	oldOwner := owner.
+ 	owner := nil.
- 	"Update borderStyle for older versions of the receiver. Use temps because of side-effects."
  	bc := borderColor. bw := borderWidth.
  	self borderColor: bc.
  	self borderWidth: bw.
+ 	owner := oldOwner.
  	
  	self flag: #todo. "mt: If we were to remove those instVars at some point, we need to increase the receivers version and add a proper conversion method via SmartRefStream. Still, this might break compatbility with foreign subclasses that rely on inst-var access."!

Squeak-dev mailing list -- [email protected]
To unsubscribe send an email to [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.