From 473808688ee3bbb035b6097c187af1820e69e01b Mon Sep 17 00:00:00 2001 From: Jiaxin Peng Date: Sun, 6 Aug 2023 21:27:07 +0800 Subject: [PATCH] Fix qlinear_viewer to avoid error on wheelEvent --- angrmanagement/ui/widgets/qlinear_viewer.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/angrmanagement/ui/widgets/qlinear_viewer.py b/angrmanagement/ui/widgets/qlinear_viewer.py index 0bdcec72b..0c5c3dfe2 100644 --- a/angrmanagement/ui/widgets/qlinear_viewer.py +++ b/angrmanagement/ui/widgets/qlinear_viewer.py @@ -326,6 +326,9 @@ def prepare_objects(self, offset, start_line=0): if offset == self._offset and start_line == self._start_line_in_object: return + # make sure self._offset is not None after return + self._offset = offset + # Convert the offset to memory region base_offset: int mr: MemoryRegion