Skip to content

Commit

Permalink
fix visual transformation
Browse files Browse the repository at this point in the history
  • Loading branch information
Rawa committed Sep 22, 2023
1 parent 593e5ae commit 7de9eea
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ fun accountTokenVisualTransformation() = VisualTransformation {
offset + (offset - 1) / ACCOUNT_TOKEN_CHUNK_SIZE

override fun transformedToOriginal(offset: Int): Int =
offset - offset / ACCOUNT_TOKEN_CHUNK_SIZE
offset - (offset - 1) / (ACCOUNT_TOKEN_CHUNK_SIZE + 1)

}
)
}

0 comments on commit 7de9eea

Please sign in to comment.