Members of the KDE Community are recommended to subscribe to the kde-community mailing list at to allow them to participate in important discussions and receive other important announcements

Commit faeaa4c6 authored by Boudewijn Rempt's avatar Boudewijn Rempt

Check whether the polygon has points before accessing the first one

parent ee4cef62
......@@ -116,7 +116,7 @@ struct Q_DECL_HIDDEN KisSafeTransform::Private
prevCross = cross;
if (!result.isClosed()) {
if (result.size() > 0 && !result.isClosed()) {
result << result.first();
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