Changeset View
Changeset View
Standalone View
Standalone View
libs/basicflakes/tools/KoCreatePathTool_p.h
Show First 20 Lines • Show All 77 Lines • ▼ Show 20 Line(s) | 76 | void validate(KoCanvasBase *canvas) { | |||
---|---|---|---|---|---|
78 | if (!isValid()) { | 78 | if (!isValid()) { | ||
79 | return; | 79 | return; | ||
80 | } | 80 | } | ||
81 | // we need canvas to validate | 81 | // we need canvas to validate | ||
82 | if (!canvas) { | 82 | if (!canvas) { | ||
83 | reset(); | 83 | reset(); | ||
84 | return; | 84 | return; | ||
85 | } | 85 | } | ||
86 | // check if path is still part of the docment | 86 | // check if path is still part of the document | ||
87 | if (!canvas->shapeManager()->shapes().contains(path)) { | 87 | if (!canvas->shapeManager()->shapes().contains(path)) { | ||
88 | reset(); | 88 | reset(); | ||
89 | return; | 89 | return; | ||
90 | } | 90 | } | ||
91 | // check if point is still part of the path | 91 | // check if point is still part of the path | ||
92 | if (path->pathPointIndex(point) == KoPathPointIndex(-1, -1)) { | 92 | if (path->pathPointIndex(point) == KoPathPointIndex(-1, -1)) { | ||
93 | reset(); | 93 | reset(); | ||
94 | return; | 94 | return; | ||
▲ Show 20 Lines • Show All 351 Lines • Show Last 20 Lines |