]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/xforms/FormMathsStyle.C
Bugfixes: checkboxes to radiobuttons (from J�rgen S) and remove a little
[lyx.git] / src / frontends / xforms / FormMathsStyle.C
index 37c73ece85a4fc9c26358fa6ceacba43066d9a9f..07b28a4c127eb2e94dbc17e9000914f36f503c10 100644 (file)
@@ -20,6 +20,7 @@
 #include "form_maths_style.h"
 
 extern char * latex_mathstyle[];
+extern kb_action latex_mathfontcmds[];
 
 FormMathsStyle::FormMathsStyle(LyXView * lv, Dialogs * d,
                               FormMathsPanel const & p)
@@ -66,8 +67,10 @@ void FormMathsStyle::build()
 
 void FormMathsStyle::apply()
 {
-       if (style_ >= 0)
+       if ( (style_ >= 0) && (style_ < 4) )
                parent_.insertSymbol(latex_mathstyle[style_]);
+       else
+               parent_.dispatchFunc(latex_mathfontcmds[style_ - 4]);
 }
 
 bool FormMathsStyle::input(FL_OBJECT *, long data)