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 assistant not updating when toggled with an action
Luna Lovecraftbf570a89bcc9
diff --git a/libs/ui/kis_painting_assistants_decoration.cpp b/libs/ui/kis_painting_assistants_decoration.cppindex c270a660af..5eb9cdea9e 100644--- a/libs/ui/kis_painting_assistants_decoration.cpp+++ b/libs/ui/kis_painting_assistants_decoration.cpp@@ -475,6 +475,11 @@ void KisPaintingAssistantsDecoration::uncache()Q_FOREACH (KisPaintingAssistantSP assistant, assistants()) {assistant->uncache();}++ // Redraw canvas decorations in case the change was made off canvas+ if (d->m_canvas) {+ d->m_canvas->updateCanvasDecorations();+ }}void KisPaintingAssistantsDecoration::toggleAssistantVisible(){