mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
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:
parent
3c4e5c1c40
commit
a6d13f91ee
@ -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
|
||||
|
@ -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());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user