Update INSTALL

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1387 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jean-Marc Lasgouttes 2001-01-25 13:20:19 +00:00
parent 5ae1d38208
commit cbf86e656b
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2001-01-25 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
* FormPreferences.C (GetFrom): fix crash when there is no format
defined.
(GetTo): ditto.
2001-01-23 Angus Leeming <a.leeming@ic.ac.uk> 2001-01-23 Angus Leeming <a.leeming@ic.ac.uk>
* FormPreferences.C (LoadBrowserLyX): convert unsigned short to * FormPreferences.C (LoadBrowserLyX): convert unsigned short to

View File

@ -1185,7 +1185,7 @@ bool FormPreferences::Converters::Input()
string const FormPreferences::Converters::GetFrom() const string const FormPreferences::Converters::GetFrom() const
{ {
int const i = fl_get_choice(dialog_->choice_from); int const i = fl_get_choice(dialog_->choice_from);
if (i > 0) if (i > 0 && i <= local_formats.size())
return local_formats.Get(i-1).name(); return local_formats.Get(i-1).name();
else { else {
lyxerr << "FormPreferences::Converters::GetFrom: No choice!" lyxerr << "FormPreferences::Converters::GetFrom: No choice!"
@ -1198,7 +1198,7 @@ string const FormPreferences::Converters::GetFrom() const
string const FormPreferences::Converters::GetTo() const string const FormPreferences::Converters::GetTo() const
{ {
int const i = fl_get_choice(dialog_->choice_to); int const i = fl_get_choice(dialog_->choice_to);
if (i > 0) if (i > 0 && i <= local_formats.size())
return local_formats.Get(i-1).name(); return local_formats.Get(i-1).name();
else { else {
lyxerr << "FormPreferences::Converters::GetTo: No choice!" lyxerr << "FormPreferences::Converters::GetTo: No choice!"