Greg Ercolano wrote:
> Phillip Wu wrote:
>> Line 82 fails as row_edit and col_edit are not initialised.
> 
>       Hmm, looks like a bug.

        I'd say the call to set_value_hide(); in those rows() and cols()
        methods shouldn't be there at all. eg:

  // Change number of rows
  void rows(int val) {
    Fl_Table::rows(val);
    set_value_hide();           // DELETE THIS
  }
  // Change number of columns
  void cols(int val) {
    Fl_Table::cols(val);
    set_value_hide();           // DELETE THIS
  }

        Also, initializing the row_edit/col_edit to zero should be done,
        though the values really shouldn't be used until set.

        I've made these changes, and checked them into SVN as r8321.

        Thanks for catching that.. all the examples are new as of this
        release (1.3.0), so if you find any other problems, let us know!
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to