Step exporter: fix a wxWidgets alert.

Fixes #4760
https://gitlab.com/kicad/code/kicad/issues/4760
This commit is contained in:
jean-pierre charras 2020-10-06 21:40:39 +02:00
parent 006e383f2a
commit f18fb9fe64
1 changed files with 3 additions and 2 deletions

View File

@ -722,7 +722,7 @@ bool PCBMODEL::CreatePCB()
{ {
wxString msg; wxString msg;
msg.Printf( "could not close outline (dropping outline data with %d segments)\n", msg.Printf( "could not close outline (dropping outline data with %d segments)\n",
oln.m_curves.size() ); static_cast<int>( oln.m_curves.size() ) );
for( const auto& c : oln.m_curves ) for( const auto& c : oln.m_curves )
msg << " + " << c.Describe() << "\n"; msg << " + " << c.Describe() << "\n";
@ -770,7 +770,8 @@ bool PCBMODEL::CreatePCB()
// subtract cutouts (if any) // subtract cutouts (if any)
if( m_cutouts.size() ) if( m_cutouts.size() )
ReportMessage( wxString::Format( "Build board cutouts and holes (%d holes)\n", (int)m_cutouts.size() ) ); ReportMessage( wxString::Format( "Build board cutouts and holes (%d holes)\n",
(int)m_cutouts.size() ) );
#if 0 // First version for holes removing: very slow when having many (> 300) holes #if 0 // First version for holes removing: very slow when having many (> 300) holes
// Substract holes (cutouts) can be time consuming, so display activity // Substract holes (cutouts) can be time consuming, so display activity