Eeschema printing: fix bg fill when paper orientation or size differs.

(cherry picked from commit 86458ae582)
This commit is contained in:
Alex Shvartzkop 2023-07-03 02:04:08 +03:00
parent 0ffef66cb6
commit 7078381175
1 changed files with 4 additions and 0 deletions

View File

@ -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
{