526 double cx = (-m_virtWidth + ((2 * pos2d.x() * m_virtWidth) / m_width) - pan (X)); |
526 double cx = (-m_virtWidth + ((2 * pos2d.x() * m_virtWidth) / m_width) - pan (X)); |
527 double cy = (m_virtHeight - ((2 * pos2d.y() * m_virtHeight) / m_height) - pan (Y)); |
527 double cy = (m_virtHeight - ((2 * pos2d.y() * m_virtHeight) / m_height) - pan (Y)); |
528 |
528 |
529 if (snap) |
529 if (snap) |
530 { |
530 { |
531 cx = Grid::snap (cx, (Grid::Config) axisX); |
531 cx = Grid::snap (cx, Grid::Coordinate); |
532 cy = Grid::snap (cy, (Grid::Config) axisY); |
532 cy = Grid::snap (cy, Grid::Coordinate); |
533 } |
533 } |
534 |
534 |
535 cx *= negXFac; |
535 cx *= negXFac; |
536 cy *= negYFac; |
536 cy *= negYFac; |
537 |
537 |