*) 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
This commit is contained in:
parent
b19cc14ef2
commit
3a07ab1f09
|
@ -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() );
|
||||||
|
|
|
@ -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.
|
||||||
|
|
Loading…
Reference in New Issue