Skip to content

Commit e9607d7

Browse files
committed
fix crop translation error with scaled layer
1 parent d16122d commit e9607d7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

napari_crop/_dock_widgets.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ def _on_cut_clicked(self):
195195
meta={
196196
'name': self._layer_to_be_cut_combobox.value.name + ' cut',
197197
'scale': layer_to_be_cut.scale,
198-
'translate': shift,
198+
'translate': tuple(np.asarray(shift) * np.asarray(layer_to_be_cut.scale)),
199199
'metadata': {'bbox': tuple(start + stop)},
200200
},
201201
layer_type=output_layer_type)

0 commit comments

Comments
 (0)