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++
Delete removing shapes without need in Knife Tool
Agata Cacko7e972d84b8bc
diff --git a/plugins/tools/tool_knife/CutThroughShapeStrategy.cpp b/plugins/tools/tool_knife/CutThroughShapeStrategy.cppindex 16e6dc8d3f..929143f31f 100644--- a/plugins/tools/tool_knife/CutThroughShapeStrategy.cpp+++ b/plugins/tools/tool_knife/CutThroughShapeStrategy.cpp@@ -211,10 +211,6 @@ void CutThroughShapeStrategy::finishInteraction(Qt::KeyboardModifiers modifiers)if (leftLine.length() == 0 || rightLine.length() == 0) {KIS_SAFE_ASSERT_RECOVER_RETURN(gapLine.length() != 0 && gapLines[0].length() != 0 && gapLines[1].length() != 0 && "Original gap lines shouldn't be empty at this point");- // looks like *all* shapes need to be cut out-- tool()->canvas()->shapeController()->removeShapes(m_allShapes, cmd.get());- tool()->canvas()->addCommand(cmd.release());return;}