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:
parent
81a7afc76e
commit
4ac4cc14ee
|
@ -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 );
|
||||
|
||||
|
|
Loading…
Reference in New Issue