mirror of
https://github.com/PaddlePaddle/PaddleOCR.git
synced 2025-06-03 21:53:39 +08:00
Modify the bug
This commit is contained in:
parent
42230e04e9
commit
d69a087eb7
@ -704,8 +704,9 @@ class Canvas(QWidget):
|
||||
|
||||
def keyPressEvent(self, ev):
|
||||
key = ev.key()
|
||||
shapesBackup = []
|
||||
shapesBackup = copy.deepcopy(self.shapes)
|
||||
if len(shapesBackup) == 0:
|
||||
return
|
||||
self.shapesBackups.pop()
|
||||
self.shapesBackups.append(shapesBackup)
|
||||
if key == Qt.Key_Escape and self.current:
|
||||
|
Loading…
x
Reference in New Issue
Block a user