From 4ac4cc14ee1c3c0d2ef392e27f745e9d669d52c7 Mon Sep 17 00:00:00 2001 From: Wayne Stambaugh Date: Sat, 24 Oct 2020 09:08:26 -0400 Subject: [PATCH] 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 --- eeschema/dialogs/dialog_sheet_properties.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eeschema/dialogs/dialog_sheet_properties.cpp b/eeschema/dialogs/dialog_sheet_properties.cpp index 66fcdeb25c..aff7e3d5ca 100644 --- a/eeschema/dialogs/dialog_sheet_properties.cpp +++ b/eeschema/dialogs/dialog_sheet_properties.cpp @@ -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( hierarchy.size() ) + 1 ); else nextPageNumber = m_sheet->GetPageNumber( instance );