Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
wangsen
paddle_dbnet
Commits
00030826
Commit
00030826
authored
Feb 24, 2022
by
HinGwenWoong
Browse files
Fixed BUG: in kie mode, when change key and enter a new key will crash the software
parent
48b15203
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
PPOCRLabel/PPOCRLabel.py
PPOCRLabel/PPOCRLabel.py
+6
-0
No files found.
PPOCRLabel/PPOCRLabel.py
View file @
00030826
...
@@ -2212,6 +2212,12 @@ class MainWindow(QMainWindow):
...
@@ -2212,6 +2212,12 @@ class MainWindow(QMainWindow):
self
.
key_previous_text
=
key_text
self
.
key_previous_text
=
key_text
for
shape
in
self
.
canvas
.
selectedShapes
:
for
shape
in
self
.
canvas
.
selectedShapes
:
shape
.
key_cls
=
key_text
shape
.
key_cls
=
key_text
if
not
self
.
keyList
.
findItemsByLabel
(
key_text
):
item
=
self
.
keyList
.
createItemFromLabel
(
key_text
)
self
.
keyList
.
addItem
(
item
)
rgb
=
self
.
_get_rgb_by_label
(
key_text
,
self
.
kie_mode
)
self
.
keyList
.
setItemLabel
(
item
,
key_text
,
rgb
)
self
.
_update_shape_color
(
shape
)
self
.
_update_shape_color
(
shape
)
def
undoShapeEdit
(
self
):
def
undoShapeEdit
(
self
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment