Skip to content

Commit

Permalink
fixed plugin-crop full width slices math (#1073)
Browse files Browse the repository at this point in the history
  • Loading branch information
endreszabo authored Feb 3, 2023
1 parent 6ec3e04 commit 263df47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/plugin-crop/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export default function pluginCrop(event) {
if (x === 0 && w === this.bitmap.width) {
// shortcut
const start = (w * y + x) << 2;
const end = (start + h * w) << 2;
const end = start + (h * w << 2);

this.bitmap.data = this.bitmap.data.slice(start, end);
} else {
Expand Down

0 comments on commit 263df47

Please sign in to comment.