diff --git a/eeschema/dialogs/dialog_print_using_printer.cpp b/eeschema/dialogs/dialog_print_using_printer.cpp index 792e17694a..08c3e66f83 100644 --- a/eeschema/dialogs/dialog_print_using_printer.cpp +++ b/eeschema/dialogs/dialog_print_using_printer.cpp @@ -398,7 +398,23 @@ void SCH_PRINTOUT::DrawPage( SCH_SCREEN* aScreen ) bool printReference = m_parent->GetPrintSheetReference(); pageSizeIU = aScreen->GetPageSettings().GetSizeIU(); +#ifdef __WXGTK__ + if( pageSizeIU.x > pageSizeIU.y ) + { + auto psd = m_parent->GetPageSetupData(); + psd.SetMarginTopLeft( wxPoint( 0, 3 ) ); + psd.SetMarginBottomRight( wxPoint( 0, 5 ) ); + FitThisSizeToPageMargins( pageSizeIU, psd ); + } + else + { + FitThisSizeToPaper( pageSizeIU ); + } + +#else FitThisSizeToPaper( pageSizeIU ); +#endif + fitRect = GetLogicalPaperRect(); wxLogDebug( wxT( "Fit rectangle: x = %d, y = %d, w = %d, h = %d" ),