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

fix very minor bugs.

parent 9e0e43e4
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -547,8 +547,8 @@ void EDA_DRAW_FRAME::PlotWorkSheet( PLOTTER* plotter, BASE_SCREEN* screen )
        case WS_SEGMENT:
        case WS_SEGMENT:
        {
        {
            wxPoint auxpos;
            wxPoint auxpos;
            auxpos.x = ( ref.x - WsItem->m_Endx ) * conv_unit;;
            auxpos.x = ( ref.x - WsItem->m_Endx ) * conv_unit;
            auxpos.y = ( ref.y - WsItem->m_Endy ) * conv_unit;;
            auxpos.y = ( ref.y - WsItem->m_Endy ) * conv_unit;
            plotter->move_to( pos );
            plotter->move_to( pos );
            plotter->finish_to( auxpos );
            plotter->finish_to( auxpos );
        }
        }
+1 −1
Original line number Original line Diff line number Diff line
@@ -68,7 +68,7 @@ int Clamp_Text_PenSize( int aPenSize, wxSize aSize, bool aBold )
{
{
    int size = MIN( ABS( aSize.x ), ABS( aSize.y ) );
    int size = MIN( ABS( aSize.x ), ABS( aSize.y ) );


    return Clamp_Text_PenSize( aPenSize, size, aBold );;
    return Clamp_Text_PenSize( aPenSize, size, aBold );
}
}




+1 −1
Original line number Original line Diff line number Diff line
@@ -321,7 +321,7 @@ void CVPCB_MAINFRAME::OnChar( wxKeyEvent& event )


    case WXK_RIGHT:
    case WXK_RIGHT:
    case WXK_NUMPAD_RIGHT:
    case WXK_NUMPAD_RIGHT:
        m_FootprintList->SetFocus();;
        m_FootprintList->SetFocus();
        break;
        break;


    default:
    default:
+1 −1
Original line number Original line Diff line number Diff line
@@ -491,7 +491,7 @@ static void DrawMovingBlockOutlines( EDA_DRAW_PANEL* aPanel, wxDC* aDC, const wx
                                     bool aErase )
                                     bool aErase )
{
{
    BASE_SCREEN*    screen = aPanel->GetScreen();
    BASE_SCREEN*    screen = aPanel->GetScreen();
    BLOCK_SELECTOR* block = &screen->m_BlockLocate;;
    BLOCK_SELECTOR* block = &screen->m_BlockLocate;
    SCH_ITEM*       schitem;
    SCH_ITEM*       schitem;


    /* Erase old block contents. */
    /* Erase old block contents. */
+1 −1
Original line number Original line Diff line number Diff line
@@ -74,7 +74,7 @@ SCH_BUS_ENTRY* SCH_EDIT_FRAME::CreateBusEntry( wxDC* DC, int entry_type )
    SCH_BUS_ENTRY* BusEntry = new SCH_BUS_ENTRY( GetScreen()->GetCrossHairPosition(), s_LastShape,
    SCH_BUS_ENTRY* BusEntry = new SCH_BUS_ENTRY( GetScreen()->GetCrossHairPosition(), s_LastShape,
                                                 entry_type );
                                                 entry_type );
    BusEntry->m_Flags = IS_NEW;
    BusEntry->m_Flags = IS_NEW;
    BusEntry->Place( this, DC );;
    BusEntry->Place( this, DC );
    OnModify();
    OnModify();
    return BusEntry;
    return BusEntry;
}
}
Loading