| Summary: | Cropping image makes perpective, ellipse, ruler, spline assistants loose alignment. | ||
|---|---|---|---|
| Product: | [Applications] krita | Reporter: | vanyossi <ghevan> |
| Component: | Tool/Assistants | Assignee: | Dmitry Kazakov <dimula73> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | dimula73, hakan.ergin, halla, nmaghfurusman, storm.anthro |
| Priority: | NOR | ||
| Version First Reported In: | git master (please specify the git hash!) | ||
| Target Milestone: | --- | ||
| Platform: | unspecified | ||
| OS: | All | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
vanyossi
2014-03-06 00:35:07 UTC
This happens not only with cropping, but also with all the transformations we support I have an idea how to fix it for all the image transformations, but I need about a day of work to do it. *** Bug 396900 has been marked as a duplicate of this bug. *** okay... But if you don't set yourself as the assignee when setting the bug to assigned, you will forget about it :-). Dmitry, do you still remember your idea? Git commit 67b2738002a3cd50b532af257c368bbe6344199a by Dmitry Kazakov. Committed on 19/08/2019 at 17:27. Pushed by dkazakov into branch 'kazakov/transformable-decorations-bug-331789'. Implement transformation of the Grid when image is transformed Basically, we implement a fake layer (KisDecorationsWrapperLayer), which accepts all the transformations and tries to transform decorations (only grids are implemented atm). There is a tricky thing: tranformations are undoable, but modifications to grids are not! Therefore we should be really careful about transforming grids. We cannot just save their state, like we plan to do for all the vector objects. Instead, we should apply inverted transformation during undo operation. M +24 -0 libs/global/kis_algebra_2d.h M +8 -0 libs/image/kis_layer_utils.h M +2 -0 libs/ui/CMakeLists.txt A +141 -0 libs/ui/KisDecorationsWrapperLayer.cpp [License: GPL (v2+)] A +69 -0 libs/ui/KisDecorationsWrapperLayer.h [License: GPL (v2+)] M +68 -11 libs/ui/KisDocument.cpp M +27 -0 libs/ui/canvas/kis_grid_config.cpp M +2 -0 libs/ui/canvas/kis_grid_config.h M +6 -3 plugins/dockers/griddocker/grid_config_widget.cpp https://invent.kde.org/kde/krita/commit/67b2738002a3cd50b532af257c368bbe6344199a Git commit 6851976ec93e199f2741b5bc397a36b240c047dc by Dmitry Kazakov. Committed on 22/08/2019 at 15:13. Pushed by dkazakov into branch 'kazakov/transformable-decorations-bug-331789'. Implement transformations for Guides M +11 -0 libs/ui/KisDecorationsWrapperLayer.cpp M +2 -1 libs/ui/canvas/kis_grid_config.cpp M +56 -0 libs/ui/canvas/kis_guides_config.cpp M +2 -0 libs/ui/canvas/kis_guides_config.h https://invent.kde.org/kde/krita/commit/6851976ec93e199f2741b5bc397a36b240c047dc thanks dmitry! Fixed in this revision: https://invent.kde.org/kde/krita/commit/bd00a058145ad0e8c6101bb5adfc6f0f58b29ef9 *** Bug 396168 has been marked as a duplicate of this bug. *** |