summaryrefslogtreecommitdiffstats
path: root/src/window
diff options
context:
space:
mode:
authorLibravatar sum-elier <44838689+sum-elier@users.noreply.github.com>2020-11-01 09:21:42 -0500
committerLibravatar sum-elier <44838689+sum-elier@users.noreply.github.com>2020-11-01 09:21:42 -0500
commit2b1d438ad48bf8113dbe064633e7e3d0ec9ac7f0 (patch)
treee6e19de5893c47fa1a688af9e1d006cd26c196f4 /src/window
parentf46431600cb61d4e83e0ded1ca79525478436be3 (diff)
downloadiced-2b1d438ad48bf8113dbe064633e7e3d0ec9ac7f0.tar.gz
iced-2b1d438ad48bf8113dbe064633e7e3d0ec9ac7f0.tar.bz2
iced-2b1d438ad48bf8113dbe064633e7e3d0ec9ac7f0.zip
Fix DimensionsMismatch error message
The values passed to write! were shifted 1 to the left. Fixes #591
Diffstat (limited to 'src/window')
-rw-r--r--src/window/icon.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/window/icon.rs b/src/window/icon.rs
index 15e0312d..0d27b00e 100644
--- a/src/window/icon.rs
+++ b/src/window/icon.rs
@@ -112,7 +112,7 @@ impl fmt::Display for Error {
write!(f,
"The number of RGBA pixels ({:?}) does not match the provided \
dimensions ({:?}x{:?}).",
- width, height, pixel_count,
+ pixel_count, width, height,
)
}
Error::OsError(e) => write!(