+2005-10-02 Martin Vermeer <martin.vermeer@hut.fi>
+
+ * GToc.C: fix bug 2038
+
2005-09-08 Angus Leeming <leeming@lyx.org>
* GSpellchecker.C: correct grammar describing invocation of the
Gtk::TreeModel::iterator it = typecombo_->get_active();
vector<string> const & choice = controller().getTypes();
- string const type = choice[(*it)[listColIndex_]];
+ // Untested:
+ string type;
+ if (!choice.empty())
+ type = choice[(*it)[listColIndex_]];
toc::Toc const contents = controller().getContents(type);
// Check if all elements are the same.
+2005-10-02 Martin Vermeer <martin.vermeer@hut.fi>
+
+ * QToc.C: fix bug 2038
+
2005-09-15 Jürgen Spitzmüller <j.spitzmueller@gmx.de>
* QTabular.C: disable newpageCB when !longtabular.
void QToc::updateToc(int newdepth)
{
vector<string> const & choice = controller().getTypes();
- string const & type = choice[dialog_->typeCO->currentItem()];
+ string type;
+ if (!choice.empty())
+ type = choice[dialog_->typeCO->currentItem()];
toc::Toc const & contents = controller().getContents(type);
+2005-10-02 Martin Vermeer <martin.vermeer@hut.fi>
+
+ * FormToc.C: fix bug 2038
+
2005-09-15 Jürgen Spitzmüller <j.spitzmueller@gmx.de>
* FormCitation.C (findBiblio): correct start iterator when
void FormToc::updateContents()
{
vector<string> types = controller().getTypes();
- string const type = types[fl_get_choice(dialog_->choice_toc_type) - 1];
+ string type;
+ if (!types.empty())
+ type = types[fl_get_choice(dialog_->choice_toc_type) - 1];
if (type.empty()) {
fl_clear_browser(dialog_->browser_toc);
fl_add_browser_line(dialog_->browser_toc,