← Back to team overview

kicad-developers team mailing list archive

Re: [PATCH] Assertion in pcbnew/dialogs/dialog_select_net_from_list.cpp

 

Julius,

I committed your patch to the master branch.  Thank you for your
contribution to KiCad.

Cheers,

Wayne

On 2/27/2017 6:54 PM, Julius Schmidt wrote:
> This patch fixes a format string assertion.
> 
> diff --git a/pcbnew/dialogs/dialog_select_net_from_list.cpp
> b/pcbnew/dialogs/dialog_select_net_from_list.cpp
> index f4539aa..fb70b90 100644
> --- a/pcbnew/dialogs/dialog_select_net_from_list.cpp
> +++ b/pcbnew/dialogs/dialog_select_net_from_list.cpp
> @@ -161,7 +161,7 @@ void DIALOG_SELECT_NET_FROM_LIST::buildNetsList()
> 
>          if( netcode )
>          {
> -            txt.Printf( wxT( "%u" ), net->m_PadInNetList.size() );
> +            txt.Printf( wxT( "%u" ), (unsigned)
> net->m_PadInNetList.size() );
>              m_netsListGrid->SetCellValue( row_idx, COL_NETINFO, txt );
>          }
>          else    // For the net 0 (unconnected pads), the pad count is
> not known
> 
> 
> _______________________________________________
> Mailing list: https://launchpad.net/~kicad-developers
> Post to     : kicad-developers@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~kicad-developers
> More help   : https://help.launchpad.net/ListHelp


References