Commit fd325b20 authored by Boudewijn Rempt's avatar Boudewijn Rempt

Check pointer before dereferencing

BUG:396145
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!";
continue;
}
// 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