8000 Agg snapping fixes (for the last time...?) :) by mdboom · Pull Request #1800 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content

Agg snapping fixes (for the last time...?) :) #1800

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Mar 7, 2013
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
E77F
Diff view
Diff view
Next Next commit
improve snapping in agg backend
  • Loading branch information
leejjoon authored and mdboom committed Mar 1, 2013
commit a6e700694ff802c7f2b393b7c814f8a4be620628
4 changes: 2 additions & 2 deletions src/path_converters.h
Original file line number Diff line number Diff line change
Expand Up @@ -514,8 +514,8 @@ class PathSnapper
code = m_source->vertex(x, y);
if (m_snap && agg::is_vertex(code))
{
*x = floor(*x - m_snap_value) + m_snap_value;
*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;
}
return code;
}
Expand Down
0