Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

svg icon rendering: fix for thin lines displaying slightly too thick …

…compared to other renderers (safari/chrome) - closes #1129 - refs #975
  • Loading branch information...
commit 00ab1b672d84b0a4be188c60f3eddfc6578c8578 1 parent 14841f6
@springmeyer springmeyer authored
Showing with 5 additions and 2 deletions.
  1. +2 −0  CHANGELOG.md
  2. +3 −2 include/mapnik/svg/svg_renderer.hpp
View
2  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)
View
5 include/mapnik/svg/svg_renderer.hpp
@@ -279,7 +279,8 @@ class svg_renderer : boost::noncopyable
{
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 @@ class svg_renderer : boost::noncopyable
{
ras.reset();
- if(fabs(curved_trans_contour.width()) < 0.0001)
+ if(fabs(curved_trans_contour.width()) <= 1)
{
ras.add_path(curved_trans, attr.index);
}
Please sign in to comment.
Something went wrong with that request. Please try again.