From 21313bc33ce2b8687f4921ecef6fb62929ed9c74 Mon Sep 17 00:00:00 2001 From: Thomas Wolf Date: Sun, 23 Jun 2024 23:38:38 +0200 Subject: [PATCH] fixed "layer 98" bug when resizing --- source/GM-TE/GMTETileMatrixLayer.class.st | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/source/GM-TE/GMTETileMatrixLayer.class.st b/source/GM-TE/GMTETileMatrixLayer.class.st index 413dda42..d2963f36 100644 --- a/source/GM-TE/GMTETileMatrixLayer.class.st +++ b/source/GM-TE/GMTETileMatrixLayer.class.st @@ -11,13 +11,12 @@ Class { { #category : #'as yet unclassified', - #'squeak_changestamp' : 'Ivo Zilkenat 6/23/2024 21:11' + #'squeak_changestamp' : 'TW 6/23/2024 23:36' } GMTETileMatrixLayer class >> width: aWidth height: aHeight layerIdx: anIdx [ ^ (self rows: aHeight columns: aWidth) - layerIdx: anIdx; - displayName: 'Layer ', anIdx; + layerIdx: anIdx; yourself ] @@ -45,7 +44,7 @@ GMTETileMatrixLayer >> addTile: aTile at: y at: x [ { #category : #copying, - #'squeak_changestamp' : 'jj 6/22/2024 16:23' + #'squeak_changestamp' : 'TW 6/23/2024 23:37' } GMTETileMatrixLayer >> asRescaledToWidth: aWidth height: aHeight [ @@ -58,6 +57,10 @@ GMTETileMatrixLayer >> asRescaledToWidth: aWidth height: aHeight [ 1 to: (aWidth min: self columnCount) do: [:col | newLayer at: row at: col put: (self at: row at: col) veryDeepCopy]]. + newLayer + visible: self visible; + displayName: self displayName. + ^ newLayer ]