Don't plot polygon borders when they are disabled.

This commit is contained in:
Alex Shvartzkop 2024-01-15 22:33:50 +03:00
parent 57bc443f0b
commit 82a0227c20
3 changed files with 10 additions and 1 deletions

View File

@ -448,6 +448,9 @@ void HPGL_PLOTTER::Circle( const VECTOR2I& aCenter, int aDiameter, FILL_T aFill,
void HPGL_PLOTTER::PlotPoly( const std::vector<VECTOR2I>& aCornerList, FILL_T aFill, int aWidth,
void* aData )
{
if( aFill == FILL_T::NO_FILL && aWidth <= 0 )
return;
if( aCornerList.size() <= 1 )
return;
@ -462,7 +465,7 @@ void HPGL_PLOTTER::PlotPoly( const std::vector<VECTOR2I>& aCornerList, FILL_T aF
MoveTo( aCornerList[0] );
startItem( userToDeviceCoordinates( aCornerList[0] ) );
if( aFill == FILL_T::FILLED_SHAPE || aFill == FILL_T::FILLED_WITH_COLOR )
if( aFill != FILL_T::NO_FILL )
{
// Draw the filled area
SetCurrentLineWidth( USE_DEFAULT_LINE_WIDTH );

View File

@ -391,6 +391,9 @@ void PDF_PLOTTER::PlotPoly( const std::vector<VECTOR2I>& aCornerList, FILL_T aFi
{
wxASSERT( m_workFile );
if( aFill == FILL_T::NO_FILL && aWidth <= 0 )
return;
if( aCornerList.size() <= 1 )
return;

View File

@ -561,6 +561,9 @@ void PS_PLOTTER::Arc( const VECTOR2D& aCenter, const EDA_ANGLE& aStartAngle,
void PS_PLOTTER::PlotPoly( const std::vector<VECTOR2I>& aCornerList, FILL_T aFill, int aWidth,
void* aData )
{
if( aFill == FILL_T::NO_FILL && aWidth <= 0 )
return;
if( aCornerList.size() <= 1 )
return;