Fix DimensionsMismatch error message
The values passed to write! were shifted 1 to the left. Fixes #591
This commit is contained in:
parent
f46431600c
commit
2b1d438ad4
1 changed files with 1 additions and 1 deletions
|
|
@ -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!(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue