Commit be896382 authored by Maxime Perrotin's avatar Maxime Perrotin

Fix state selection when highlightning symbol

parent 83f44008
......@@ -379,7 +379,7 @@ class sdlHandler(QObject):
composition = state.split(UNICODE_SEP)
for each in composition:
for symb in self.sdl_scene.find_text(u'\\b{}\\b'.format(each)):
self.sdl_scene.highlight(symb)
self.sdl_scene.highlight(symb.parentItem())
self.log_area.addItem('New state: {}'.format(CleanName(state)))
return True
return False
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment