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

This commit is contained in:
Alex Shvartzkop 2023-07-03 02:04:08 +03:00
parent b242779f3b
commit 86458ae582
1 changed files with 4 additions and 0 deletions

View File

@ -469,11 +469,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
{