mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-14 02:03:12 +02:00
Pcbnew, PDF plot: fix property popup locations when plotting mirrored.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/19717
This commit is contained in:
parent
dc5276c1df
commit
e9269e59f7
@ -780,6 +780,14 @@ void PDF_PLOTTER::ClosePage()
|
||||
VECTOR2D retval = VECTOR2D( aCoord ) * PTsPERMIL / ( m_IUsPerDecimil * 10 );
|
||||
// PDF y=0 is at bottom of page, invert coordinate
|
||||
retval.y = psPaperSize.y - retval.y;
|
||||
|
||||
// The pdf plot can be mirrored (from left to right). So mirror the
|
||||
// x coordinate if m_plotMirror is set
|
||||
if( m_plotMirror )
|
||||
{
|
||||
retval.x = ( psPaperSize.x - retval.x );
|
||||
}
|
||||
|
||||
return retval;
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user