Commit 181b502
Improve error message when loading BMP with wrong bit depth
>
When loading a BMP with a 24-bit depth, the error "Incomplete or corrupt .BMP file" was shown.
By testing the bit depth first, a better message is shown.1 parent 8e254d0 commit 181b502
1 file changed
+6
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
270 | 270 | | |
271 | 271 | | |
272 | 272 | | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
273 | 277 | | |
274 | 278 | | |
275 | 279 | | |
276 | 280 | | |
| 281 | + | |
| 282 | + | |
277 | 283 | | |
278 | 284 | | |
279 | 285 | | |
280 | 286 | | |
281 | | - | |
282 | | - | |
283 | | - | |
284 | | - | |
285 | | - | |
286 | | - | |
287 | 287 | | |
288 | 288 | | |
289 | 289 | | |
| |||
0 commit comments