Make meander dashed-line borders constant size.
This commit is contained in:
parent
d04641c868
commit
4da3e0ff93
|
@ -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 );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue