7
mirror of https://gitlab.com/kicad/code/kicad.git synced 2025-04-21 00:21:25 +00:00

PCB_TABLE: fix incorrect plot of tables rotated +-90 (missing segments).

This change was missing in commit 276029ee

Fixes https://gitlab.com/kicad/code/kicad/-/issues/19985
This commit is contained in:
jean-pierre charras 2025-02-21 09:47:45 +01:00
parent b932487f2e
commit a9fb475cf2

View File

@ -1164,6 +1164,9 @@ void BRDITEMS_PLOTTER::PlotTableBorders( const PCB_TABLE* aTable )
PCB_TABLECELL* cell = aTable->GetCell( row, col );
VECTOR2I topRight( cell->GetEndX(), cell->GetStartY() );
if( !cell->GetTextAngle().IsHorizontal() )
topRight = VECTOR2I( cell->GetStartX(), cell->GetEndY() );
if( cell->GetColSpan() > 0 && cell->GetRowSpan() > 0 )
strokeLine( topRight, cell->GetEnd() );
}
@ -1179,6 +1182,9 @@ void BRDITEMS_PLOTTER::PlotTableBorders( const PCB_TABLE* aTable )
PCB_TABLECELL* cell = aTable->GetCell( row, col );
VECTOR2I botLeft( cell->GetStartX(), cell->GetEndY() );
if( !cell->GetTextAngle().IsHorizontal() )
botLeft = VECTOR2I( cell->GetEndX(), cell->GetStartY() );
if( cell->GetColSpan() > 0 && cell->GetRowSpan() > 0 )
strokeLine( botLeft, cell->GetEnd() );
}