mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-26 03:11:59 +00:00
Fix broken updating of TOC
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2383 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
d1063993ce
commit
952ee7b2b9
@ -1,3 +1,8 @@
|
|||||||
|
2001-07-29 Asger Alstrup Nielsen <alstrup@alstrup>
|
||||||
|
|
||||||
|
* FormToc.C (updateType): Fix problem with TOC that couldn't be
|
||||||
|
updated because the type list was not updated.
|
||||||
|
|
||||||
2001-07-26 Angus Leeming <a.leeming@ic.ac.uk>
|
2001-07-26 Angus Leeming <a.leeming@ic.ac.uk>
|
||||||
|
|
||||||
* forms/form_aboutlyx.fd: made a bit bigger to get the Copyright &
|
* forms/form_aboutlyx.fd: made a bit bigger to get the Copyright &
|
||||||
|
@ -71,6 +71,13 @@ ButtonPolicy::SMInput FormToc::input(FL_OBJECT *, long)
|
|||||||
|
|
||||||
void FormToc::updateType()
|
void FormToc::updateType()
|
||||||
{
|
{
|
||||||
|
// Update the choice list from scratch
|
||||||
|
fl_clear_choice(dialog_->choice_toc_type);
|
||||||
|
string const choice =
|
||||||
|
" " + getStringFromVector(controller().getTypes(), " | ") + " ";
|
||||||
|
fl_addto_choice(dialog_->choice_toc_type, choice.c_str());
|
||||||
|
|
||||||
|
// And select the correct one
|
||||||
string const type = toc::getType(controller().params().getCmdName());
|
string const type = toc::getType(controller().params().getCmdName());
|
||||||
|
|
||||||
fl_set_choice(dialog_->choice_toc_type, 1);
|
fl_set_choice(dialog_->choice_toc_type, 1);
|
||||||
|
Loading…
Reference in New Issue
Block a user