diff --git a/WINGs/wings-rs-tests/tests/snapshots/font_panel_tests__font_panel.snap.png b/WINGs/wings-rs-tests/tests/snapshots/font_panel_tests__font_panel.snap.png index e3000130..730fc0e1 100644 Binary files a/WINGs/wings-rs-tests/tests/snapshots/font_panel_tests__font_panel.snap.png and b/WINGs/wings-rs-tests/tests/snapshots/font_panel_tests__font_panel.snap.png differ diff --git a/wutil-rs/src/array.rs b/wutil-rs/src/array.rs index acae7c7a..a0d94684 100644 --- a/wutil-rs/src/array.rs +++ b/wutil-rs/src/array.rs @@ -359,7 +359,7 @@ pub mod ffi { if index < 0 { return ptr::null_mut(); } - match array.items.get(index as usize) { + match array.items.get(index as usize + 1) { Some(i) => { unsafe { *iter += 1; @@ -382,10 +382,10 @@ pub mod ffi { } let array = unsafe { &*array }; let index = unsafe { *iter }; - if index < 0 { + if index < 1 { return ptr::null_mut(); } - match array.items.get(index as usize) { + match array.items.get(index as usize - 1) { Some(i) => { unsafe { *iter -= 1;