From 452383b8cc41dbec95f022751afd6324eb6b3f14 Mon Sep 17 00:00:00 2001 From: Craig Watson Date: Sat, 5 Nov 2016 18:32:28 -0400 Subject: [PATCH] Save one-polygon strokes to SVG as polygons, not polylines This prevents a bug where a simplified stroke (containing only one polygon) was incorrectly saved as a polyline, which meant the stroke was lost when the document was loaded. --- src/domain/UBGraphicsStroke.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/domain/UBGraphicsStroke.cpp b/src/domain/UBGraphicsStroke.cpp index 7dddf6e9..a2b66015 100644 --- a/src/domain/UBGraphicsStroke.cpp +++ b/src/domain/UBGraphicsStroke.cpp @@ -170,6 +170,9 @@ bool UBGraphicsStroke::hasPressure() } } + else + return true; + return false; }