- Buffer *buffer = current_view->currentBuffer();
- if (fl_get_button(fd_form_sendto->radio_ftype_dvi) ||
- fl_get_button(fd_form_sendto->radio_ftype_ps)) {
- ProhibitInput();
- // Generate dvi file and check if there are errors in the .lyx file
- if (MakeDVIOutput(buffer) > 0) {
- AllowInput();
- return;
- }
- AllowInput();
- }