Skip to content

armgit / krita

Public Imported from GitHub
0

Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.

C++

Fix crash when deleting vector layers

Luna Lovecraft4cc73f716bac
diff --git a/libs/ui/canvas/kis_canvas2.cpp b/libs/ui/canvas/kis_canvas2.cpp
index c7ad8d72ac..e198a58742 100644
--- a/libs/ui/canvas/kis_canvas2.cpp
+++ b/libs/ui/canvas/kis_canvas2.cpp
@@ -1374,7 +1374,8 @@ KisPopupPalette *KisCanvas2::popupPalette()
void KisCanvas2::slotTrySwitchShapeManager()
{
- // noop, the shape manager is recalculated lazily on the fly
+ // Still needs to be recalculated in some cases, like when deleting vector layers
+ localShapeManager();
}
void KisCanvas2::notifyLevelOfDetailChange()