From c7951401fe1bf0ba8379462460a32471a3866610 Mon Sep 17 00:00:00 2001 From: Craig Watson Date: Mon, 29 May 2017 14:09:23 -0400 Subject: [PATCH] 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. --- src/domain/UBGraphicsStroke.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/domain/UBGraphicsStroke.cpp b/src/domain/UBGraphicsStroke.cpp index 7e124a11..c9b456d8 100644 --- a/src/domain/UBGraphicsStroke.cpp +++ b/src/domain/UBGraphicsStroke.cpp @@ -75,9 +75,10 @@ bool UBGraphicsStroke::hasPressure() if (!pol->isNominalLine() || pol->originalWidth() != nominalWidth) return true; } + return false; } - return false; + return true; }