Skip to content

Commit

Permalink
moving a line inside the guard because it is useless outside of it
Browse files Browse the repository at this point in the history
  • Loading branch information
adri09070 committed Jan 24, 2024
1 parent 10fb7da commit d18abd0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Spec2-Adapters-Morphic/SpMorphicMillerAdapter.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -236,8 +236,9 @@ SpMorphicMillerAdapter >> scrollToShowLastPage [
self widget defer: [
| size firstMorphIndex |
size := innerWidget submorphs size.
firstMorphIndex := size - self presenter visiblePages + 1.

size > 0 ifTrue: [
firstMorphIndex := size - self presenter visiblePages + 1.
self widget showMorph:
(innerWidget submorphs at: ((firstMorphIndex max: 1) min: size)) ] ]
]
Expand Down

0 comments on commit d18abd0

Please sign in to comment.