Eeschema printing: fix bg fill when paper orientation or size differs.
This commit is contained in:
parent
b242779f3b
commit
86458ae582
|
@ -469,11 +469,15 @@ void SCH_PRINTOUT::PrintPage( SCH_SCREEN* aScreen )
|
||||||
// All the coordinates will be rotated 90 deg when printing,
|
// All the coordinates will be rotated 90 deg when printing,
|
||||||
// so the X,Y offset vector must be rotated -90 deg before printing
|
// so the X,Y offset vector must be rotated -90 deg before printing
|
||||||
std::swap( xoffset, yoffset );
|
std::swap( xoffset, yoffset );
|
||||||
|
std::swap( fitRect.width, fitRect.height );
|
||||||
yoffset = -yoffset;
|
yoffset = -yoffset;
|
||||||
}
|
}
|
||||||
|
|
||||||
matrix.Translate( xoffset, yoffset );
|
matrix.Translate( xoffset, yoffset );
|
||||||
dc->SetTransformMatrix( matrix );
|
dc->SetTransformMatrix( matrix );
|
||||||
|
|
||||||
|
fitRect.x -= xoffset;
|
||||||
|
fitRect.y -= yoffset;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue