diff --git a/common/common.cpp b/common/common.cpp index 38c80cf39f..f97a1780ba 100644 --- a/common/common.cpp +++ b/common/common.cpp @@ -299,6 +299,7 @@ void PAGE_INFO::SetUserWidthMils( int aWidthInMils ) s_user_width = aWidthInMils; } + void PAGE_INFO::SetUserHeightMils( int aHeightInMils ) { if( aHeightInMils < 4000 ) @@ -309,7 +310,6 @@ void PAGE_INFO::SetUserHeightMils( int aHeightInMils ) s_user_height = aHeightInMils; } - //----------------------------------------------------------------- @@ -541,7 +541,6 @@ wxArrayString* wxStringSplit( wxString aString, wxChar aSplitter ) */ double To_User_Unit( EDA_UNITS_T aUnit, double val, int internal_unit_value ) { - switch( aUnit ) { case MILLIMETRES: diff --git a/include/common.h b/include/common.h index 0ae5db0a17..f9fe9e82d9 100644 --- a/include/common.h +++ b/include/common.h @@ -123,8 +123,6 @@ enum EDA_UNITS_T { class LibNameList; -//class PAGE_INFO; - /** * Class PAGE_INFO * describes the page size and margins of a paper page on which to @@ -197,13 +195,15 @@ public: /** * Function SetUserWidthMils - * sets the width of type "User" page in mils. + * sets the width of type "User" page in mils, for any type "User" page + * constructed or made via SetType() after making this call. */ static void SetUserWidthMils( int aWidthInMils ); /** * Function SetUserHeightMils - * sets the height type "User" page in mils. + * sets the height type "User" page in mils, for any type "User" page + * constructed or made via SetType() after making this call. */ static void SetUserHeightMils( int aHeightInMils ); @@ -232,11 +232,8 @@ private: // all dimensions here are in mils wxString m_type; ///< paper type: A4, A3, etc. - wxSize m_size; ///< mils -// wxPoint m_offset_mils; ///< plot offset in mils - int m_left_margin; int m_right_margin; int m_top_margin;