remove clamping from PAGE_INFO setters

This commit is contained in:
Dick Hollenbeck 2012-03-06 14:10:12 -06:00
parent ed5585eb6c
commit db7c8cfd92
1 changed files with 5 additions and 0 deletions

View File

@ -204,20 +204,25 @@ void PAGE_INFO::SetPortrait( bool isPortrait )
static int clampWidth( int aWidthInMils ) static int clampWidth( int aWidthInMils )
{ {
/* was giving EESCHEMA single component SVG plotter grief
if( aWidthInMils < 4000 ) // 4" is about a baseball card if( aWidthInMils < 4000 ) // 4" is about a baseball card
aWidthInMils = 4000; aWidthInMils = 4000;
else if( aWidthInMils > 44000 ) //44" is plotter size else if( aWidthInMils > 44000 ) //44" is plotter size
aWidthInMils = 44000; aWidthInMils = 44000;
*/
return aWidthInMils; return aWidthInMils;
} }
static int clampHeight( int aHeightInMils ) static int clampHeight( int aHeightInMils )
{ {
/* was giving EESCHEMA single component SVG plotter grief
if( aHeightInMils < 4000 ) if( aHeightInMils < 4000 )
aHeightInMils = 4000; aHeightInMils = 4000;
else if( aHeightInMils > 44000 ) else if( aHeightInMils > 44000 )
aHeightInMils = 44000; aHeightInMils = 44000;
*/
return aHeightInMils; return aHeightInMils;
} }