mirror of
https://github.com/hannobraun/Fornjot
synced 2025-09-27 19:48:17 +00:00
Fix off-by-one error when selecting next index
This commit is contained in:
parent
b3622693a5
commit
ccf6d9a1d1
@ -28,7 +28,7 @@ impl OperationView {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pub fn select_next(&mut self) {
|
pub fn select_next(&mut self) {
|
||||||
if self.selected < self.operations().len() {
|
if self.selected + 1 < self.operations().len() {
|
||||||
self.selected += 1;
|
self.selected += 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user