mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-14 02:03:12 +02:00
EEschema: Plot stroked edges over BG
Items that have BG fill need to be plotted in the background but we still need their stroked edges to be in the FG. This is a workaround that overplots the edges ensuring visual similarity. Re-working the plot engine to support layers is a larger project. Fixes: lp:1833428 * https://bugs.launchpad.net/kicad/+bug/1833428 (cherry picked from commit 6796e8fff60f5da115d59591a89a2e189078f039)
This commit is contained in:
parent
53989e3bdc
commit
d65da471b7
@ -448,7 +448,7 @@ void LIB_PART::Plot( PLOTTER* aPlotter, int aUnit, int aConvert,
|
||||
}
|
||||
|
||||
// Not filled items and filled shapes are now plotted
|
||||
// (plot only items which are not already plotted)
|
||||
// Items that have BG fills only get re-stroked to ensure the edges are in the foreground
|
||||
for( LIB_ITEM& item : m_drawings )
|
||||
{
|
||||
if( item.Type() == LIB_FIELD_T )
|
||||
@ -460,8 +460,7 @@ void LIB_PART::Plot( PLOTTER* aPlotter, int aUnit, int aConvert,
|
||||
if( aConvert && item.m_Convert && ( item.m_Convert != aConvert ) )
|
||||
continue;
|
||||
|
||||
if( item.m_Fill != FILLED_WITH_BG_BODYCOLOR )
|
||||
item.Plot( aPlotter, aOffset, fill, aTransform );
|
||||
item.Plot( aPlotter, aOffset, fill && ( item.m_Fill != FILLED_WITH_BG_BODYCOLOR ), aTransform );
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user