Fix bugs with printing bordered shapes.
Fixes https://gitlab.com/kicad/code/kicad/issues/11536
This commit is contained in:
parent
585ea85f95
commit
d2610736ff
|
@ -357,15 +357,24 @@ void LIB_SHAPE::print( const RENDER_SETTINGS* aSettings, const VECTOR2I& aOffset
|
||||||
|
|
||||||
GRFilledArc( DC, pt1, pt2, c, 0, fillColor, fillColor );
|
GRFilledArc( DC, pt1, pt2, c, 0, fillColor, fillColor );
|
||||||
|
|
||||||
GRArc( DC, pt1, pt2, c, penWidth, color );
|
if( penWidth > 0 )
|
||||||
|
GRArc( DC, pt1, pt2, c, penWidth, color );
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case SHAPE_T::CIRCLE:
|
case SHAPE_T::CIRCLE:
|
||||||
GRFilledCircle( DC, pt1, GetRadius(), 0, color, fillColor );
|
GRFilledCircle( DC, pt1, GetRadius(), penWidth, color, fillColor );
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case SHAPE_T::RECT:
|
case SHAPE_T::RECT:
|
||||||
GRFilledRect( DC, pt1, pt2, penWidth, color, fillColor );
|
// GRFilledRect seems to have issues printing a border over the background colour,
|
||||||
|
// so we fill and stroke separately
|
||||||
|
|
||||||
|
GRFilledRect( DC, pt1, pt2, 0, color, fillColor );
|
||||||
|
|
||||||
|
if( penWidth > 0 )
|
||||||
|
GRRect( DC, pt1, pt2, penWidth, color );
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case SHAPE_T::POLY:
|
case SHAPE_T::POLY:
|
||||||
|
|
Loading…
Reference in New Issue