Skip to content

Commit

Permalink
Don't swap width/height when cropping page
Browse files Browse the repository at this point in the history
  • Loading branch information
will-moore committed Jan 25, 2024
1 parent 458a3b0 commit 5c88461
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/views/modal_views.js
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@
h_mm = Math.round(h_pixels * 25.4 / dpi);
}

if (orientation == 'horizontal' && size != 'mm') {
if (orientation == 'horizontal' && size != 'mm' && size != 'crop') {
var tmp = w_mm; w_mm = h_mm; h_mm = tmp;
tmp = w_pixels; w_pixels = h_pixels; h_pixels = tmp;
}
Expand Down

0 comments on commit 5c88461

Please sign in to comment.