Fix wrong printf() format specifiers in the screenshotgen util.

Use "%ld" for long values, not "%d".
This commit is contained in:
Dimitri Schoolwerth 2015-04-26 14:46:49 +04:00
parent 2f3d0d9629
commit d15bfe8794
No known key found for this signature in database
GPG Key ID: 9DC3A9240BDC6737

View File

@ -240,8 +240,8 @@ void GUIFrame::AddPanel_2()
m_listCtrl1->InsertColumn(0, "Names");
m_listCtrl1->InsertColumn(1, "Values");
for(long index = 0; index < 5; index++) {
m_listCtrl1->InsertItem( index, wxString::Format(_("Item%d"),index));
m_listCtrl1->SetItem(index, 1, wxString::Format("%d", index));
m_listCtrl1->InsertItem( index, wxString::Format(_("Item%ld"),index));
m_listCtrl1->SetItem(index, 1, wxString::Format("%ld", index));
}
m_listCtrl1->SetToolTip( _("wxListCtrl") );
fgSizer2->Add( m_listCtrl1, m_commonExpandFlags);