Skip to content

Commit

Permalink
Merge pull request #39 from BiAPoL/cut_with_plane
Browse files Browse the repository at this point in the history
fix crop translation error with scaled layer
  • Loading branch information
zoccoler authored Jun 27, 2023
2 parents 8da09f6 + e9607d7 commit 8c83d79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion napari_crop/_dock_widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ def _on_cut_clicked(self):
meta={
'name': self._layer_to_be_cut_combobox.value.name + ' cut',
'scale': layer_to_be_cut.scale,
'translate': shift,
'translate': tuple(np.asarray(shift) * np.asarray(layer_to_be_cut.scale)),
'metadata': {'bbox': tuple(start + stop)},
},
layer_type=output_layer_type)

0 comments on commit 8c83d79

Please sign in to comment.