Skip to content

Commit 8c83d79

Browse files
authored
Merge pull request #39 from BiAPoL/cut_with_plane
fix crop translation error with scaled layer
2 parents 8da09f6 + e9607d7 commit 8c83d79

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)