Commit fd325b20 authored by Halla Rempt's avatar Halla Rempt
Browse files

Check pointer before dereferencing

parent 3d0e377c
......@@ -1418,6 +1418,10 @@ QString KoPathShape::toString(const QTransform &matrix) const
// iterate over all points of the current subpath
for (; pointIt != (*pathIt)->constEnd(); ++pointIt) {
KoPathPoint *currPoint(*pointIt);
if (!currPoint) {
qWarning() << "Found a zero point in the shape's path!";
// first point of subpath ?
if (currPoint == firstPoint) {
// are we starting a subpath ?
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