Eeschema: fix new sheet page number bug.

Msys2 builds on windows still don't support the %z printf specifier so
convert to integer and use %d.

Fixes: https://gitlab.com/kicad/code/kicad/-/issues/6142
This commit is contained in:
Wayne Stambaugh 2020-10-24 09:08:26 -04:00
parent 81a7afc76e
commit 4ac4cc14ee
1 changed files with 1 additions and 1 deletions

View File

@ -167,7 +167,7 @@ bool DIALOG_SHEET_PROPERTIES::TransferDataToWindow()
wxString nextPageNumber;
if( m_sheet->IsNew() )
nextPageNumber.Printf( "%z", hierarchy.size() + 1 );
nextPageNumber.Printf( "%d", static_cast<int>( hierarchy.size() ) + 1 );
else
nextPageNumber = m_sheet->GetPageNumber( instance );