From f36ffece703215ccfd7625a0514341589611fb98 Mon Sep 17 00:00:00 2001 From: Dick Hollenbeck Date: Tue, 6 Mar 2012 14:10:12 -0600 Subject: [PATCH] remove clamping from PAGE_INFO setters --- common/class_page_info.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/common/class_page_info.cpp b/common/class_page_info.cpp index 14607d9f3b..edd6749355 100644 --- a/common/class_page_info.cpp +++ b/common/class_page_info.cpp @@ -204,20 +204,25 @@ void PAGE_INFO::SetPortrait( bool isPortrait ) static int clampWidth( int aWidthInMils ) { +/* was giving EESCHEMA single component SVG plotter grief if( aWidthInMils < 4000 ) // 4" is about a baseball card aWidthInMils = 4000; + else if( aWidthInMils > 44000 ) //44" is plotter size aWidthInMils = 44000; +*/ return aWidthInMils; } static int clampHeight( int aHeightInMils ) { +/* was giving EESCHEMA single component SVG plotter grief if( aHeightInMils < 4000 ) aHeightInMils = 4000; else if( aHeightInMils > 44000 ) aHeightInMils = 44000; +*/ return aHeightInMils; }