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++

Remove more debugging

Dmitry Kazakov223b1d8fbf7d
diff --git a/libs/flake/tools/KoPathTool.cpp b/libs/flake/tools/KoPathTool.cpp
index b02670e92e..a873f2c8a9 100644
--- a/libs/flake/tools/KoPathTool.cpp
+++ b/libs/flake/tools/KoPathTool.cpp
@@ -99,7 +99,6 @@ KoPathTool::KoPathTool(KoCanvasBase *canvas)
m_actionBreakPoint = action("path-break-point");
m_actionBreakSegment = action("path-break-segment");
m_actionBreakSelection = action("path-break-selection");
- KIS_ASSERT(m_actionBreakSelection);
m_actionJoinSegment = action("pathpoint-join");
m_actionMergePoints = action("pathpoint-merge");
m_actionConvertToPath = action("convert-to-path");
@@ -572,13 +571,8 @@ void KoPathTool::mousePressEvent(KoPointerEvent *event)
KoShapeManager *shapeManager = canvas()->shapeManager();
KoSelection *selection = shapeManager->selection();
-
- ENTER_FUNCTION() << ppVar(selection->selectedEditableShapes());
-
KoShape *shape = shapeManager->shapeAt(event->point, KoFlake::ShapeOnTop);
- ENTER_FUNCTION() << ppVar(shape) << (shape && !selection->isSelected(shape));
-
if (shape && !selection->isSelected(shape)) {
if (!(event->modifiers() & Qt::ShiftModifier)) {