]> git.lyx.org Git - lyx.git/blobdiff - src/lyx_gui_misc.C
Fix working of the spellchecker dialog with ispell when there are no
[lyx.git] / src / lyx_gui_misc.C
index f6bd2605d5ad8b20e7370e494773e37e7d7463ce..dc4c6ca53734e13cab33fbfd70e6eb2cfed4863a 100644 (file)
 #include "lyx_cb.h"
 #include "lyx_main.h"
 #include "print_form.h"
-#include "sp_form.h"
 #include "LyXView.h"
 #include "bufferview_funcs.h"
 #include "support/filetools.h"
 #include "lyxrc.h"
+#include "debug.h"
 
 using std::pair;
 using std::make_pair;
@@ -37,15 +37,18 @@ extern BufferView * current_view;
 
 extern FD_form_figure * fd_form_figure;
 extern FD_form_sendto * fd_form_sendto;
-extern FD_form_spell_check * fd_form_spell_check;
 
 extern void HideFiguresPopups();
 
+
 // Prevents LyX from being killed when the close box is pressed in a popup.
-extern "C" int CancelCloseBoxCB(FL_FORM *, void *)
+extern "C"
+int CancelCloseBoxCB(FL_FORM *, void *)
 {
        return FL_CANCEL;
 }
+
+
 // Redraw the form (on receipt of a Signal indicating, for example,
 // that the xform colors have been re-mapped).
 void RedrawAllBufferRelatedDialogs()
@@ -56,10 +59,6 @@ void RedrawAllBufferRelatedDialogs()
        if (fd_form_sendto->form_sendto->visible) {
                fl_redraw_form(fd_form_sendto->form_sendto);
        }
-       if (fd_form_spell_check &&
-           fd_form_spell_check->form_spell_check->visible) {
-               fl_redraw_form(fd_form_spell_check->form_spell_check);
-       }
 }
 
 // Prevents LyX from crashing when no buffers available
@@ -78,11 +77,6 @@ void CloseAllBufferRelatedDialogs()
        if (fd_form_sendto->form_sendto->visible) {
                fl_hide_form(fd_form_sendto->form_sendto);
        }
-       if (fd_form_spell_check) {
-               if (fd_form_spell_check->form_spell_check->visible) {
-                       fl_trigger_object(fd_form_spell_check->done);
-               }
-       }
        HideFiguresPopups();
 }