Ticket #87 (closed bugs: wontfix)
Opened 3 years ago
Last modified 14 months ago
select row bug in Fl_ListView
| Reported by: | nobody | Owned by: | karijes |
|---|---|---|---|
| Priority: | normal | Milestone: | 1.2 |
| Component: | efltk | Version: | 2.0.6 |
| Keywords: | Cc: |
Description (last modified by karijes) (diff)
another bug in Fl_ListView. try to push `tab+left`
for example in listview.
there was segmentation violation. i added one line to
fix it.
int Fl_ListView::handle_key()
{
if(!children()) return 0;
Fl::event_clicks(0); // make program not think it
is a double-click
switch(Fl::event_key())
{
/* ... */
default: {
int ret=0;
ret = vscrollbar->send(FL_KEY);
if(!ret) ret = hscrollbar->send(FL_KEY);
if(ret)
{
if(Fl::event_key()==FL_Page_Up)
select_only_row( row_at(yposition()) );
else if(Fl::event_key()==FL_Page_Down)
{
select_only_row( row_at(yposition()+tih) );
}
if(cur_row > children()) cur_row = 0;
//<========= segmentation violation without it
show_row(cur_row);
return 1;
/* ... */
Change History
Note: See
TracTickets for help on using
tickets.
