Commit 7723afca authored by Maxime Perrotin's avatar Maxime Perrotin
Browse files

Fix item highlight

parent c2860d2d
......@@ -1925,10 +1925,10 @@ class SDL_View(QtGui.QGraphicsView, object):
symbol = self.scene().symbol_near(pos=pos, dist=1)
if symbol:
self.scene().clearSelection()
self.clear_highlight()
self.scene().clear_highlight()
self.scene().clear_focus()
symbol.select()
self.highlight(symbol)
self.scene().highlight(symbol)
symbol.ensureVisible()
else:
LOG.info('No symbol at given coordinates in the current scene')
......
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