diff --git a/eeschema/dialogs/dialog_print_using_printer.cpp b/eeschema/dialogs/dialog_print_using_printer.cpp index 0475ec3c0b..0b920373bf 100644 --- a/eeschema/dialogs/dialog_print_using_printer.cpp +++ b/eeschema/dialogs/dialog_print_using_printer.cpp @@ -468,11 +468,15 @@ void SCH_PRINTOUT::PrintPage( SCH_SCREEN* aScreen ) // All the coordinates will be rotated 90 deg when printing, // so the X,Y offset vector must be rotated -90 deg before printing std::swap( xoffset, yoffset ); + std::swap( fitRect.width, fitRect.height ); yoffset = -yoffset; } matrix.Translate( xoffset, yoffset ); dc->SetTransformMatrix( matrix ); + + fitRect.x -= xoffset; + fitRect.y -= yoffset; } else {