diff options
| author | Laurenz <laurmaedje@gmail.com> | 2023-02-12 16:56:51 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2023-02-12 17:28:17 +0100 |
| commit | f4856c18b9cf3f6952276cc61b557aebeb2fa651 (patch) | |
| tree | bf96d2e6d9c154c1e2603c096ff9d6f39db0e217 /library/src/visualize/image.rs | |
| parent | 697ae1f925f1be80b34c1da697ba8db7327a6b61 (diff) | |
Remove base width
Diffstat (limited to 'library/src/visualize/image.rs')
| -rw-r--r-- | library/src/visualize/image.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/src/visualize/image.rs b/library/src/visualize/image.rs index 87b67287..330f1d04 100644 --- a/library/src/visualize/image.rs +++ b/library/src/visualize/image.rs @@ -76,7 +76,7 @@ impl Layout for ImageNode { let px_ratio = pxw / pxh; // Find out whether the image is wider or taller than the target size. - let Regions { first, expand, .. } = regions; + let Regions { size: first, expand, .. } = regions; let region_ratio = first.x / first.y; let wide = px_ratio > region_ratio; |
