https://bugs.kde.org/show_bug.cgi?id=407554
Boudewijn Rempt <b...@valdyas.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Latest Commit|https://invent.kde.org/kde/ |https://invent.kde.org/kde/ |krita/commit/eb61160966ddc7 |krita/commit/94065177379800 |94cfd02a9225e577f0844e51e0 |0c7fcdc7e6d811f52fe4c2a117 --- Comment #16 from Boudewijn Rempt <b...@valdyas.org> --- Git commit 940651773798000c7fcdc7e6d811f52fe4c2a117 by Boudewijn Rempt, on behalf of Dmitry Kazakov. Committed on 13/06/2019 at 05:59. Pushed by rempt into branch 'krita/4.2'. Fix a crash when creating a text shape Every KoShapeController used to reset the global "shape document" in its KoDocumentResourceManager. The problem is that in Krita we have multiple KoShapeController-s, but the resource manager is the only one. It means that every shape selection or shape layer used to reset the pointer to the global "shape document" to its own one. The only reason why we didn't have too many crashes is that almost noone uses this "shape document". Ideally we should: 1) Remove KoDocumentResourceManager::GlobalShapeController resource. This resource is not global to the document, but is created per-layer. The only user of it atm is the legacy text tool, which should be deprecated. 2) Remove KoDocumentResourceManager at all. There is no much use of it anymore. Its main user is legacy text tool. M +18 -5 libs/flake/KoDocumentResourceManager.cpp M +13 -3 libs/flake/KoDocumentResourceManager.h M +0 -3 libs/flake/KoShapeController.cpp M +1 -1 libs/flake/KoShapeRegistry.cpp M +1 -1 libs/flake/tests/TestKoShapeRegistry.cpp M +2 -4 libs/flake/text/KoSvgTextShape.cpp M +9 -6 libs/ui/KisDocument.cpp M +1 -1 libs/ui/flake/kis_dummies_facade_base.h M +26 -0 libs/ui/flake/kis_shape_controller.cpp M +6 -0 libs/ui/flake/kis_shape_controller.h M +1 -1 plugins/flake/textshape/TextShapeFactory.cpp https://invent.kde.org/kde/krita/commit/940651773798000c7fcdc7e6d811f52fe4c2a117 -- You are receiving this mail because: You are watching all bug changes.