diff --git a/common/plotters/plotter.cpp b/common/plotters/plotter.cpp index 4d4b7d7331..2830cf87e0 100644 --- a/common/plotters/plotter.cpp +++ b/common/plotters/plotter.cpp @@ -93,12 +93,6 @@ DPOINT PLOTTER::userToDeviceCoordinates( const wxPoint& aCoordinate ) { wxPoint pos = aCoordinate - m_plotOffset; - // Don't allow overflows; they can cause rendering failures in some file viewers - // (such as Acrobat) - int clampSize = MAX_PAGE_SIZE_MILS * m_IUsPerDecimil * 10 / 2; - pos.x = std::max( -clampSize, std::min( pos.x, clampSize ) ); - pos.y = std::max( -clampSize, std::min( pos.y, clampSize ) ); - double x = pos.x * m_plotScale; double y = ( m_paperSize.y - pos.y * m_plotScale );