mirror of
https://github.com/bec-project/bec_widgets.git
synced 2025-07-13 11:11:49 +02:00
fix(crosshair): use objectName instead of config for retrieving the monitor name
This commit is contained in:
@ -458,7 +458,7 @@ class Crosshair(QObject):
|
|||||||
)
|
)
|
||||||
self.coordinatesClicked1D.emit(coordinate_to_emit)
|
self.coordinatesClicked1D.emit(coordinate_to_emit)
|
||||||
elif isinstance(item, pg.ImageItem):
|
elif isinstance(item, pg.ImageItem):
|
||||||
name = item.config.monitor or str(id(item))
|
name = item.objectName() or str(id(item))
|
||||||
x, y = x_snap_values[name], y_snap_values[name]
|
x, y = x_snap_values[name], y_snap_values[name]
|
||||||
if x is None or y is None:
|
if x is None or y is None:
|
||||||
continue
|
continue
|
||||||
|
Reference in New Issue
Block a user