Generalize loop end/vector size

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7822 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Martin Vermeer 2003-09-24 17:25:58 +00:00
parent 3c4e5c1c40
commit a6d13f91ee
2 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2003-09-24 Martin Vermeer <martin.vermeer@hut.fi>
* FormNote.C: generalize loop end/vector size
2003-09-23 Angus Leeming <leeming@lyx.org>
* FormExternal.C (updateComboChange): use formatted to ensure that the

View File

@ -35,7 +35,7 @@ void FormNote::build()
note_gui_tokens(ids_, gui_names_);
for (int i = 0; i < 3; ++i) {
for (int i = 0; i < gui_names_.size(); ++i) {
fl_addto_choice(dialog_->choice_type, gui_names_[i].c_str());
}
@ -53,7 +53,7 @@ void FormNote::build()
void FormNote::update()
{
string type(controller().params().type);
for (int i = 0; i < 3; ++i) {
for (int i = 0; i < gui_names_.size(); ++i) {
if (type == ids_[i])
fl_set_choice_text(dialog_->choice_type, gui_names_[i].c_str());
}