]> git.lyx.org Git - lyx.git/blobdiff - src/figureForm.C
Fix working of the spellchecker dialog with ispell when there are no
[lyx.git] / src / figureForm.C
index e572f3135110334e3d49d6e224f1665cbb37d72e..b160d0eedc80fa310ab25cfafa28589a71ad8534 100644 (file)
@@ -41,7 +41,8 @@ void Figure()
 
 
 /* callbacks for form form_figure */
-extern "C"
+extern "C" {
+       
 void FigureApplyCB(FL_OBJECT *, long)
 {
        if (!current_view->available())
@@ -88,6 +89,7 @@ void FigureApplyCB(FL_OBJECT *, long)
                                     VSpace (0.3 *
                                             buffer->params.spacing.getValue(),
                                             LyXLength::CM),
+                                    Spacing(),
                                     LYX_ALIGN_CENTER, string(), 0);
        
        current_view->update(current_view->text, BufferView::SELECT|BufferView::FITCUR|BufferView::CHANGE);
@@ -102,16 +104,17 @@ void FigureApplyCB(FL_OBJECT *, long)
 }
 
 
-extern "C"
 void FigureCancelCB(FL_OBJECT *, long)
 {
        fl_hide_form(fd_form_figure->form_figure);
 }
 
 
-extern "C"
 void FigureOKCB(FL_OBJECT * ob, long data)
 {
        FigureApplyCB(ob, data);
        FigureCancelCB(ob, data);
 }
+
+}
+