Make meander dashed-line borders constant size.

This commit is contained in:
Jeff Young 2023-10-11 12:06:10 +01:00
parent d04641c868
commit 4da3e0ff93
1 changed files with 2 additions and 3 deletions

View File

@ -910,6 +910,7 @@ public:
return;
KIGFX::PREVIEW::DRAW_CONTEXT ctx( *aView );
int size = KiROUND( aView->ToWorld( EDIT_POINT::POINT_SIZE ) * 0.8 );
if( m_baseLine )
{
@ -929,9 +930,7 @@ public:
for( int i = 0; i < chain.SegmentCount(); i++ )
{
SEG seg = chain.Segment( i );
ctx.DrawLineDashed( seg.A, seg.B, pcbIUScale.mmToIU( 0.2 ), pcbIUScale.mmToIU( 0.1 ),
false );
ctx.DrawLineDashed( seg.A, seg.B, size, size / 2, false );
}
}