Changeset View
Changeset View
Standalone View
Standalone View
plugins/tools/basictools/kis_tool_line_helper.cpp
Show First 20 Lines • Show All 155 Lines • ▼ Show 20 Line(s) | |||||
156 | void KisToolLineHelper::cancel() | 156 | void KisToolLineHelper::cancel() | ||
157 | { | 157 | { | ||
158 | if (!m_d->enabled) return; | 158 | if (!m_d->enabled) return; | ||
159 | KIS_ASSERT_RECOVER_RETURN(isRunning()); | 159 | KIS_ASSERT_RECOVER_RETURN(isRunning()); | ||
160 | 160 | | |||
161 | cancelPaint(); | 161 | cancelPaint(); | ||
162 | m_d->linePoints.clear(); | 162 | m_d->linePoints.clear(); | ||
163 | } | 163 | } | ||
164 | | ||||
165 | | ||||
166 | void KisToolLineHelper::clearPaint() | ||||
167 | { | ||||
168 | if (!m_d->enabled) return; | ||||
169 | | ||||
170 | cancelPaint(); | ||||
171 | } |