https://bugs.kde.org/show_bug.cgi?id=391292
Bug ID: 391292 Summary: Shape Selection tool cannot edit shapes on a selection mask. Product: krita Version: git master Platform: Other OS: Linux Status: UNCONFIRMED Severity: normal Priority: NOR Component: Layers/Vector Assignee: krita-bugs-n...@kde.org Reporter: griffinval...@gmail.com Target Milestone: --- To reproduce. 1. Make a selection with the selection tools, with the selection set to 'vector'. 2. Select the global selection mask. 3. Select the shape select tool. 4. Try to select the shape on the global selection mask. I though initially it was because of that floating popup thing, but the following patch makes NO difference for me when it comes to actually selecting the shape on the selection mask. ----------------------------------------------------------------------------- diff --git a/plugins/tools/defaulttool/defaulttool/DefaultTool.cpp b/plugins/tools/defaulttool/defaulttool/DefaultTool.cpp index bffae46..e800e22 100644 --- a/plugins/tools/defaulttool/defaulttool/DefaultTool.cpp +++ b/plugins/tools/defaulttool/defaulttool/DefaultTool.cpp @@ -677,12 +677,12 @@ void DefaultTool::paint(QPainter &painter, const KoViewConverter &converter) // this tool only works on a vector layer right now, so give a warning if another layer type is trying to use it KisNodeSP currentNode = canvas()->resourceManager()->resource(KisCanvasResourceProvider::CurrentKritaNode).value<KisNodeWSP>(); - if (currentNode.isNull() || !currentNode->inherits("KisShapeLayer")) { + if (currentNode.isNull() || (!currentNode->inherits("KisShapeLayer") && !currentNode->inherits("KisSelectionMask"))) { KisCanvas2 * kiscanvas = static_cast<KisCanvas2*>(canvas()); kiscanvas->viewManager()->showFloatingMessage( i18n("This tool only works on vector layers. You probably want the move tool."), - QIcon(), 2000, KisFloatingMessage::Medium, Qt::AlignCenter); + QIcon(), 500, KisFloatingMessage::Medium, Qt::AlignCenter); return; } -- You are receiving this mail because: You are watching all bug changes.