Commit c7951401 authored by Craig Watson's avatar Craig Watson

Save one-polygon strokes as polygons, not polylines

This solves an issue where erasing a stroke to the point that only one
(truncated) polygon was left resulted in this polygon reappearing after
reloading the document.

This should not affect any strokes containing more than one polygon.
parent f434cb66
......@@ -75,9 +75,10 @@ bool UBGraphicsStroke::hasPressure()
if (!pol->isNominalLine() || pol->originalWidth() != nominalWidth)
return true;
}
return false;
}
return false;
return true;
}
......
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