From 044a4ea8fc7d99558bcaabb3924798696e475653 Mon Sep 17 00:00:00 2001 From: Jonathan Westhues Date: Sun, 12 Apr 2015 14:24:55 -0700 Subject: [PATCH] Don't offset SVG width and height by one. --- src/exportvector.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/exportvector.cpp b/src/exportvector.cpp index 2864a3b..0b638d8 100644 --- a/src/exportvector.cpp +++ b/src/exportvector.cpp @@ -482,9 +482,8 @@ void SvgFileWriter::StartFile(void) { "\r\n" "Exported SVG\r\n" "\r\n", - (ptMax.x - ptMin.x) + 1, (ptMax.y - ptMin.y) + 1, - (ptMax.x - ptMin.x) + 1, (ptMax.y - ptMin.y) + 1); - // A little bit of extra space for the stroke width. + (ptMax.x - ptMin.x), (ptMax.y - ptMin.y), + (ptMax.x - ptMin.x), (ptMax.y - ptMin.y)); } void SvgFileWriter::StartPath(RgbColor strokeRgb, double lineWidth,