diff --git a/src/editing/preview.rs b/src/editing/preview.rs index 3a5de6f..a14f537 100644 --- a/src/editing/preview.rs +++ b/src/editing/preview.rs @@ -1,4 +1,4 @@ -// Copyright (c) 2024 Sophie Herold +// Copyright (c) 2024-2025 Sophie Herold // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by @@ -139,7 +139,7 @@ impl OperationsSnapshot { let y_center = self.height as f32 * self.scale / 2.; snapshot.translate(&graphene::Point::new(y_center, x_center)); - snapshot.rotate(rotation.degrees() as f32); + snapshot.rotate(-(rotation.degrees() as f32)); snapshot.translate(&graphene::Point::new(-x_center, -y_center)); snapshot.append_node(self.current_node.clone()); diff --git a/src/widgets/edit/crop.rs b/src/widgets/edit/crop.rs index caaef66..e77163d 100644 --- a/src/widgets/edit/crop.rs +++ b/src/widgets/edit/crop.rs @@ -1,4 +1,4 @@ -// Copyright (c) 2024 Sophie Herold +// Copyright (c) 2024-2025 Sophie Herold // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by @@ -295,13 +295,13 @@ mod imp { } fn apply_rotate_cw(&self) { - self.add_operation(Operation::Rotate(gufo_common::orientation::Rotation::_90)); + self.add_operation(Operation::Rotate(gufo_common::orientation::Rotation::_270)); self.reset_selection(); } fn apply_rotate_ccw(&self) { - self.add_operation(Operation::Rotate(gufo_common::orientation::Rotation::_270)); + self.add_operation(Operation::Rotate(gufo_common::orientation::Rotation::_90)); self.reset_selection(); }