svg icon rendering: fix for thin lines displaying slightly too thick compared to other renderers (safari/chrome) - closes #1129 - refs #975
This commit is contained in:
parent
14841f6931
commit
00ab1b672d
2 changed files with 5 additions and 2 deletions
|
@ -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)
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue