Skip to content

Commit 696879a

Browse files
authored
printsize (fix): swap const width and height for A4 (#297)
1 parent c5c6a9d commit 696879a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/print.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -217,8 +217,8 @@ pub struct PrintSize {
217217
impl PrintSize {
218218
/// The standard A4 paper size, which has the dimension of `21.0x29.7cm`.
219219
pub const A4: Self = Self {
220-
width: 29.7,
221-
height: 21.0,
220+
width: 21.,
221+
height: 29.7,
222222
};
223223

224224
/// The standard US letter paper size, which has the dimension of `21.59x27.94cm`.

0 commit comments

Comments
 (0)