The 'Layer' menu action 'Rotate Layer 90 to the Left' is rotating the layer 90 degrees to the right, instead of to the left. See Additional Information. Reproducible: Always Steps to Reproduce: 1. Open a non-blank image. 2. Select 'Layer' in the menu bar. 3. In the 'Layer' menu, select the 'Rotate' sub-menu, then 'Rotate 90 to the Left' Actual Results: The layer is rotated 90 degrees to the right. Expected Results: The layer should have been rotated 90 degrees to the left. In the file "calligra/krita/ui/kis_node_manager.cpp", the function KisNodeManager::rotateLeft90() is passing M_PI / 2 - 2*M_PI to rotate, which isn't quite right. This should be changed to M_PI + (M_PI / 2) or -M_PI / 2.
Created attachment 77412 [details] Patch for the bug as suggested The suggested change resolves the bug indeed. Attached is a git-patch against current master.
Git commit 5f053469c572135c5c5cc8c8cbe268a1c29abace by Sven Langkamp. Committed on 18/02/2013 at 22:13. Pushed by langkamp into branch 'master'. fix layer rotate left problem was found by Dario Cambié M +1 -1 krita/ui/kis_node_manager.cpp http://commits.kde.org/calligra/5f053469c572135c5c5cc8c8cbe268a1c29abace
Thanks for the patch. I did change it so to rotate by -pi/2 as that's a bit simpler.
Thank you for the quick fix but I have to give full credit to the original reporter halcyon.kdeuser@gmail.com ;)
Git commit 8ef7f458d83cb33fa0c9abeff51c7d32696f96e5 by Boudewijn Rempt, on behalf of Sven Langkamp. Committed on 18/02/2013 at 22:13. Pushed by rempt into branch 'calligra/2.6'. fix layer rotate left problem was found by Dario Cambié M +1 -1 krita/ui/kis_node_manager.cpp http://commits.kde.org/calligra/8ef7f458d83cb33fa0c9abeff51c7d32696f96e5