problem with Gtk::TreeView::Row.set_value()



I have such code:

...
std::list<double>::iterator eps_rez = ...->begin();
int eps_count = 17;
Gtk::TreeView::Column *column;
Gtk::TreeModel::iterator iter;
Gtk::TreeModel::Row row;
	
int i = 2;
while (column = treeview_Results_table.get_column(++i))
{
	iter = refptrliststore_Results_table->children()[1];
	row = *(iter);

	row->set_value(i, *++eps_rez);
	/*after this i have error:
Gtk-CRITICAL **: gtk_list_store_set_value: assertion `VALID_ITER (iter, list_store)' failed
	*/

	for (int j = 1; j <= 4; ++j)
	{
		++iter;
	}

	for (int j = 2; j <= eps_count; ++j)
	{
		row = *(++iter);
		row->set_value(i, *++eps_rez);
	}
}

How to solve that problem?



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