We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 8da09f6 + e9607d7 commit 8c83d79Copy full SHA for 8c83d79
1 file changed
napari_crop/_dock_widgets.py
@@ -195,7 +195,7 @@ def _on_cut_clicked(self):
195
meta={
196
'name': self._layer_to_be_cut_combobox.value.name + ' cut',
197
'scale': layer_to_be_cut.scale,
198
- 'translate': shift,
+ 'translate': tuple(np.asarray(shift) * np.asarray(layer_to_be_cut.scale)),
199
'metadata': {'bbox': tuple(start + stop)},
200
},
201
layer_type=output_layer_type)
0 commit comments