mirror of
https://github.com/djibux/BoilR.git
synced 2026-09-01 14:03:42 +02:00
Fix crash on loading animated webp alpha
This commit is contained in:
@@ -94,4 +94,10 @@ mod tests {
|
||||
let res = load_image_from_path(std::path::Path::new("src/testdata/hollow.webp"));
|
||||
assert!(res.is_err());
|
||||
}
|
||||
|
||||
#[test]
|
||||
pub fn test_image_load_animated_webp2() {
|
||||
let res = load_image_from_path(std::path::Path::new("src/testdata/tunic.webp"));
|
||||
assert!(res.is_err());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -577,9 +577,6 @@ impl MyEguiApp {
|
||||
let thumbnail_key = image.thumbnail_path.to_string_lossy().to_string();
|
||||
let thumbnail = self.image_selected_state.image_handles.remove(&thumbnail_key);
|
||||
if let Some((key,thumbnail)) = thumbnail {
|
||||
dbg!(&full_image_key);
|
||||
dbg!(&key);
|
||||
|
||||
self.image_selected_state
|
||||
.image_handles
|
||||
.insert(full_image_key, thumbnail);
|
||||
|
||||
Reference in New Issue
Block a user