Skip to content

Commit

Permalink
fixed "layer 98" bug when resizing
Browse files Browse the repository at this point in the history
  • Loading branch information
RedToxyl committed Jun 23, 2024
1 parent 73132f6 commit 21313bc
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions source/GM-TE/GMTETileMatrixLayer.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -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
]

Expand Down Expand Up @@ -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 [

Expand All @@ -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

]
Expand Down

0 comments on commit 21313bc

Please sign in to comment.