Commit a44f3a61 authored by Lukáš Tvrdý's avatar Lukáš Tvrdý

Fix PVS Studio warning

Make the code cleaner

V571 Recurring check. The 'm_closeSnappingActivated' condition was already verified in line 92. kis_tool_polyline_base.cpp 93
parent e7d8c8b2
......@@ -90,9 +90,7 @@ void KisToolPolylineBase::beginPrimaryAction(KoPointerEvent *event)
setMode(KisTool::PAINT_MODE);
if(m_dragging && m_closeSnappingActivated) {
if (m_closeSnappingActivated) {
m_points.append(m_points.first());
}
m_points.append(m_points.first());
endStroke();
} else {
m_dragging = true;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment