We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c7da07d commit a6e7006Copy full SHA for a6e7006
src/path_converters.h
@@ -514,8 +514,8 @@ class PathSnapper
514
code = m_source->vertex(x, y);
515
if (m_snap && agg::is_vertex(code))
516
{
517
- *x = floor(*x - m_snap_value) + m_snap_value;
518
- *y = floor(*y - m_snap_value) + m_snap_value;
+ *x = floor(*x + 0.5 - m_snap_value) + m_snap_value;
+ *y = floor(*y + 0.5 - m_snap_value) + m_snap_value;
519
}
520
return code;
521
0 commit comments