Changeset View
Changeset View
Standalone View
Standalone View
plugins/tools/basictools/kis_tool_line.cc
Context not available. | |||||
172 | void KisToolLine::beginPrimaryAction(KoPointerEvent *event) | 172 | void KisToolLine::beginPrimaryAction(KoPointerEvent *event) | ||
---|---|---|---|---|---|
173 | { | 173 | { | ||
174 | NodePaintAbility nodeAbility = nodePaintAbility(); | 174 | NodePaintAbility nodeAbility = nodePaintAbility(); | ||
175 | if (nodeAbility == NONE || !nodeEditable()) { | 175 | if (nodeAbility == UNPAINTABLE || !nodeEditable()) { | ||
176 | event->ignore(); | 176 | event->ignore(); | ||
177 | return; | 177 | return; | ||
178 | } | 178 | } | ||
Context not available. | |||||
263 | { | 263 | { | ||
264 | NodePaintAbility nodeAbility = nodePaintAbility(); | 264 | NodePaintAbility nodeAbility = nodePaintAbility(); | ||
265 | 265 | | |||
266 | if (!m_strokeIsRunning || m_startPoint == m_endPoint || nodeAbility == NONE) { | 266 | if (!m_strokeIsRunning || m_startPoint == m_endPoint || nodeAbility == UNPAINTABLE) { | ||
267 | return; | 267 | return; | ||
268 | } | 268 | } | ||
269 | 269 | | |||
Context not available. |