Commit ee2ed120 authored by jean-pierre charras's avatar jean-pierre charras
Browse files

Eeschema: Fix Bug #1130262 (Inverted pins are plotted with erroneous line width)

parent 0564cbc7
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -1308,8 +1308,8 @@ void LIB_PIN::PlotSymbol( PLOTTER* aPlotter, const wxPoint& aPosition, int aOrie
        aPlotter->Circle( wxPoint( MapX1 * INVERT_PIN_RADIUS + x1,
        aPlotter->Circle( wxPoint( MapX1 * INVERT_PIN_RADIUS + x1,
                                   MapY1 * INVERT_PIN_RADIUS + y1 ),
                                   MapY1 * INVERT_PIN_RADIUS + y1 ),
                          INVERT_PIN_RADIUS * 2, // diameter
                          INVERT_PIN_RADIUS * 2, // diameter
                          NO_FILL,               // fill
                          NO_FILL,               // fill option
                          -1 );                  // width
                          GetPenSize() );       // width


        aPlotter->MoveTo( wxPoint( MapX1 * INVERT_PIN_RADIUS * 2 + x1,
        aPlotter->MoveTo( wxPoint( MapX1 * INVERT_PIN_RADIUS * 2 + x1,
                                    MapY1 * INVERT_PIN_RADIUS * 2 + y1 ) );
                                    MapY1 * INVERT_PIN_RADIUS * 2 + y1 ) );
+3 −4
Original line number Original line Diff line number Diff line
@@ -363,8 +363,9 @@ public:
    /**
    /**
     * Function DrawPinTexts
     * Function DrawPinTexts
     * puts the pin number and pin text info, given the pin line coordinates.
     * puts the pin number and pin text info, given the pin line coordinates.
     * The line must be vertical or horizontal.  If PinText == NULL nothing is printed.
     * The line must be vertical or horizontal.
     * If PinNum = 0 no number is printed.  The current zoom factor is taken into account.
     * If DrawPinName == false the pin name is not printed.
     * If DrawPinNum = false the pin number is not printed.
     * If TextInside then the text is been put inside,otherwise all is drawn outside.
     * If TextInside then the text is been put inside,otherwise all is drawn outside.
     * Pin Name:    substring between '~' is negated
     * Pin Name:    substring between '~' is negated
     * DrawMode = GR_OR, XOR ...
     * DrawMode = GR_OR, XOR ...
@@ -378,8 +379,6 @@ public:
     * plots the pin number and pin text info, given the pin line coordinates.
     * plots the pin number and pin text info, given the pin line coordinates.
     * Same as DrawPinTexts((), but output is the plotter
     * Same as DrawPinTexts((), but output is the plotter
     * The line must be vertical or horizontal.
     * The line must be vertical or horizontal.
     * If PinNext == NULL nothing is printed.
     * Current Zoom factor is taken into account.
     * If TextInside then the text is been put inside (moving from x1, y1 in
     * If TextInside then the text is been put inside (moving from x1, y1 in
     * the opposite direction to x2,y2), otherwise all is drawn outside.
     * the opposite direction to x2,y2), otherwise all is drawn outside.
     */
     */