Patch #1446110: use of uninitialized variables
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37920 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -146,10 +146,7 @@ gtk_listbox_row_activated_callback(GtkTreeView *treeview,
|
||||
((listbox->GetWindowStyleFlag() & wxLB_EXTENDED) != 0)) )
|
||||
{
|
||||
//toggle the selection + send event
|
||||
if(listbox->IsSelected( sel ))
|
||||
listbox->GtkSetSelection(sel, FALSE, FALSE);
|
||||
else
|
||||
listbox->GtkSetSelection(sel, TRUE, FALSE);
|
||||
listbox->GtkSetSelection(sel, !listbox->IsSelected( sel ), FALSE);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1082,14 +1079,11 @@ wxSize wxListBox::DoGetBestSize() const
|
||||
{
|
||||
wxCHECK_MSG(m_treeview, wxDefaultSize, wxT("invalid tree view"));
|
||||
|
||||
int lbWidth;
|
||||
int lbHeight;
|
||||
|
||||
// Start with a minimum size that's not too small
|
||||
int cx, cy;
|
||||
GetTextExtent( wxT("X"), &cx, &cy);
|
||||
lbWidth += 3 * cx;
|
||||
lbHeight += 10;
|
||||
int lbWidth = 3 * cx;
|
||||
int lbHeight = 10;
|
||||
|
||||
// Get the visible area of the tree view (limit to the 10th item
|
||||
// so that it isn't too big)
|
||||
|
Reference in New Issue
Block a user