Bug in SalInstanceTreeView::set_column_editables() ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

maybe there is a bug in SalInstanceTreeView::set_column_editables():

It calls SvTabListBox::SetTabEditable(), which sets the EDITABLE flag in mvTabList array of SvLBoxTab.

But the parent class SvTreeListBox keeps another array of SvLBoxTab called aTabs.

When the user presses the mouse button on a cell in a treeview, SvImpLBox::MouseButtonDown() is called.

It gets the tab SvTreeListBox::GetTab(), which retrieves it from the aTabs array.

Then it checks the EDITABLE flag with SvLBoxTab::IsEditable().

But of course the EDITABLE flag has been set in the mvTabList array of the subclass SvTabListBox.

The net result is that only the first column is editable, since that is always set to editable by default (in both tab arrays).

Is this a bug? And how to fix it? What is the point of the second tab array in the subclass?

Jan


Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature


[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux