-2001-09-10 Angus Leeming <a.leeming@ic.ac.uk>
+2001-09-11 Angus Leeming <a.leeming@ic.ac.uk>
- * FormMathsBitmap (build): fix memory leak.
+ * FormDocument.C (input, options_update): add code to enable the
+ Author-Year/Numerical citation choice only if the natbib checkbox is
+ active.
2001-09-08 Jürgen Spitzmüller <j.spitzmueller@gmx.de>
default:
break;
}
-
+
+ if (ob == options_->check_use_natbib) {
+ setEnabled(options_->choice_citation_format,
+ fl_get_button(options_->check_use_natbib));
+ }
+
switch (data) {
case INPUT:
case CHECKCHOICECLASS:
fl_set_button(options_->check_use_natbib, params.use_natbib);
fl_set_choice(options_->choice_citation_format,
int(params.use_numerical_citations)+1);
+ setEnabled(options_->choice_citation_format, params.use_natbib);
fl_set_counter_value(options_->slider_secnumdepth, params.secnumdepth);
fl_set_counter_value(options_->slider_tocdepth, params.tocdepth);
if (!params.float_placement.empty())