Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix UB in QGraphicsScene::wheelEvent()
operator--() would iterate before begin() if the list was empty. This is UB, and will crash in Qt 6, where begin()/end() can return an iterator pointing to a nullptr if the list is empty. Change-Id: I39c3a8ebb09fcad75d42019b02426ac5ac05eed9 Reviewed-by: Alex Blasche <[email protected]> Reviewed-by: Mårten Nordheim <[email protected]>
- Loading branch information