Make meander dashed-line borders constant size.
This commit is contained in:
parent
d04641c868
commit
4da3e0ff93
|
@ -910,6 +910,7 @@ public:
|
||||||
return;
|
return;
|
||||||
|
|
||||||
KIGFX::PREVIEW::DRAW_CONTEXT ctx( *aView );
|
KIGFX::PREVIEW::DRAW_CONTEXT ctx( *aView );
|
||||||
|
int size = KiROUND( aView->ToWorld( EDIT_POINT::POINT_SIZE ) * 0.8 );
|
||||||
|
|
||||||
if( m_baseLine )
|
if( m_baseLine )
|
||||||
{
|
{
|
||||||
|
@ -929,9 +930,7 @@ public:
|
||||||
for( int i = 0; i < chain.SegmentCount(); i++ )
|
for( int i = 0; i < chain.SegmentCount(); i++ )
|
||||||
{
|
{
|
||||||
SEG seg = chain.Segment( i );
|
SEG seg = chain.Segment( i );
|
||||||
|
ctx.DrawLineDashed( seg.A, seg.B, size, size / 2, false );
|
||||||
ctx.DrawLineDashed( seg.A, seg.B, pcbIUScale.mmToIU( 0.2 ), pcbIUScale.mmToIU( 0.1 ),
|
|
||||||
false );
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue