diff --git a/CHANGELOG.md b/CHANGELOG.md index 1ab3c2306..5bb879017 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,8 @@ For a complete change history, see the SVN log. ## Mapnik 2.1.0 +- Fixed rendering of thin svg lines (#1129) + - Improved logging/debugging system with release logs and file redirection (#937 and partially #986, #467) - GDAL: allow setting nodata value on the fly (will override value if nodata is set in data) (#1161) diff --git a/include/mapnik/svg/svg_renderer.hpp b/include/mapnik/svg/svg_renderer.hpp index e62b2dfe7..80aac5f28 100644 --- a/include/mapnik/svg/svg_renderer.hpp +++ b/include/mapnik/svg/svg_renderer.hpp @@ -279,7 +279,8 @@ public: { ras.reset(); - if(fabs(curved_trans_contour.width()) < 0.0001) + // https://github.com/mapnik/mapnik/issues/1129 + if(fabs(curved_trans_contour.width()) <= 1) { ras.add_path(curved_trans, attr.index); } @@ -384,7 +385,7 @@ public: { ras.reset(); - if(fabs(curved_trans_contour.width()) < 0.0001) + if(fabs(curved_trans_contour.width()) <= 1) { ras.add_path(curved_trans, attr.index); }