Commit 3a07ab1f authored by Dick Hollenbeck's avatar Dick Hollenbeck
Browse files

*) 64 bit size_t is not compatible with %u printf format control. use "%zu"

where the 'z' prefix is for size_t arguments.

*) minor beautification
parent b19cc14e
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -412,7 +412,7 @@ void LIB_POLYLINE::DisplayInfo( EDA_DRAW_FRAME* aFrame )


wxString LIB_POLYLINE::GetSelectMenuText() const
wxString LIB_POLYLINE::GetSelectMenuText() const
{
{
    return wxString::Format( _( "Polyline at (%s, %s) with %u points" ),
    return wxString::Format( _( "Polyline at (%s, %s) with %zu points" ),
                             GetChars( CoordinateToString( m_PolyPoints[0].x ) ),
                             GetChars( CoordinateToString( m_PolyPoints[0].x ) ),
                             GetChars( CoordinateToString( m_PolyPoints[0].y ) ),
                             GetChars( CoordinateToString( m_PolyPoints[0].y ) ),
                             m_PolyPoints.size() );
                             m_PolyPoints.size() );
+10 −10
Original line number Original line Diff line number Diff line
@@ -617,8 +617,8 @@ static void moveItem( EDA_DRAW_PANEL* aPanel, wxDC* aDC, const wxPoint& aPositio
    // Erase the current item at its current position.
    // Erase the current item at its current position.
    if( aErase )
    if( aErase )
        item->Draw( aPanel, aDC, wxPoint( 0, 0 ), g_XorMode );
        item->Draw( aPanel, aDC, wxPoint( 0, 0 ), g_XorMode );

#endif
#endif

    item->SetPosition( screen->GetCrossHairPosition() );
    item->SetPosition( screen->GetCrossHairPosition() );


    // Draw the item item at it's new position.
    // Draw the item item at it's new position.