diff --git a/synaptic/gtk/rgrepositorywin.cc b/synaptic/gtk/rgrepositorywin.cc index 6ef14cc..bb1b92b 100644 --- synaptic.orig/gtk/rgrepositorywin.cc +++ synaptic/gtk/rgrepositorywin.cc @@ -675,11 +675,13 @@ void RGRepositoryEditor::SelectionChanged(GtkTreeSelection *selection, gtk_entry_set_text(GTK_ENTRY(me->_entryDist), utf8(rec->Dist.c_str())); gtk_entry_set_text(GTK_ENTRY(me->_entrySect), ""); - for (unsigned int I = 0; I < rec->NumSections; I++) { + for (unsigned int I = 0; I < (rec->NumSections - 1); I++) { gtk_entry_append_text(GTK_ENTRY(me->_entrySect), utf8(rec->Sections[I].c_str())); gtk_entry_append_text(GTK_ENTRY(me->_entrySect), " "); } + gtk_entry_append_text(GTK_ENTRY(me->_entrySect), + utf8(rec->Sections[rec->NumSections - 1].c_str())); } else { //cout << "no selection" << endl; gtk_widget_set_sensitive(me->_editTable, FALSE);